Kemal::Form::Field
Super class of all form fields.
Custom form fields should inherit from Kemal::Form::Field.
Constructors
new(id : String, name : String, value : String, required : Bool, label : Nil | Kemal::Form::Label = nil, attrs : Hash(String, String) = {} of String => String, validators : Array(Kemal::FormValidator::Validator) = [] of Kemal::FormValidator::Validator)
Initializes a new form field with the given id, name, attrs, value, required, label and validators.