struct Components::Examples::FormComponent::Field

Overview

Form field configuration

Defined in:

components/examples/form_component.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, type : String, label : String, required : Bool = false, placeholder : Nil | String = nil) #

[View source]

Instance Method Detail

def error : String | Nil #

[View source]
def error=(error : String | Nil) #

[View source]
def label : String #

[View source]
def label=(label : String) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def placeholder : String | Nil #

[View source]
def placeholder=(placeholder : String | Nil) #

[View source]
def required : Bool #

[View source]
def required=(required : Bool) #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]
def value : String #

[View source]
def value=(value : String) #

[View source]