struct
Components::Examples::FormComponent::Field
- Components::Examples::FormComponent::Field
- Struct
- Value
- Object
Overview
Form field configuration
Defined in:
components/examples/form_component.crConstructors
Instance Method Summary
- #error : String | Nil
- #error=(error : String | Nil)
- #label : String
- #label=(label : String)
- #name : String
- #name=(name : String)
- #placeholder : String | Nil
- #placeholder=(placeholder : String | Nil)
- #required : Bool
- #required=(required : Bool)
- #type : String
- #type=(type : String)
- #value : String
- #value=(value : String)
Constructor Detail
def self.new(name : String, type : String, label : String, required : Bool = false, placeholder : Nil | String = nil)
#