DynFork::Fields::TextField
Inherits DynFork::Fields::Field < JSON::Serializable < Struct < Value < Object
A field for entering a text string.
Constructors
new(pull : JSON::PullParser)
Sourcenew(label : String = "", default : String | Nil = nil, placeholder : String = "", maxlength : UInt32 | Nil = 256, regex : String | Nil = nil, regex_err_msg : String | Nil = nil, hide : Bool = false, unique : Bool = false, textarea : Bool = false, use_editor : Bool = false, required : Bool = false, disabled : Bool = false, readonly : Bool = false, ignored : Bool = false, hint : String = "", warning : Array(String) = Array(String).new)
SourceInstance methods
group
To optimize field traversal in the paladins/check() method.
WARNING: It is recommended not to change.
regex_err_msg
Error message. NOTE: Example: I18n.t("allowed_chars.interpolation",chars: "a-z, A-Z, 0-9, _")
regex_err_msg?
Error message. NOTE: Example: I18n.t("allowed_chars.interpolation",chars: "a-z, A-Z, 0-9, _")