struct DynFork::Fields::BoolField
- DynFork::Fields::BoolField
- DynFork::Fields::Field
- Struct
- Value
- Object
Overview
Boolean field.
Defined in:
dynfork/fields/bool.crConstructors
- .new(pull : JSON::PullParser)
- .new(label : String = "", default : Bool | Nil = false, hide : Bool = false, disabled : Bool = false, ignored : Bool = false, hint : String = "")
Instance Method Summary
- #choices : Nil
- #choices? : Nil | Nil
-
#default : Bool | Nil
Value by default.
-
#default? : Bool | Nil | Nil
Value by default.
-
#extract_default_bool? : Bool | Nil
For the
DynFork::QPaladins::Check#check
method. -
#extract_val_bool? : Bool | Nil
For the
DynFork::QPaladins::Check#check
method. -
#field_type : String
Field type - Structure Name.
-
#group : UInt8
To optimize field traversal in the
paladins/check()
method. -
#input_type : String | Nil
Html tag: input type="checkbox".
-
#input_type? : String | Nil | Nil
Html tag: input type="checkbox".
- #max : Nil
- #max? : Nil | Nil
- #maxlength : Nil
- #maxlength? : Nil | Nil
- #maxsize : Float32
- #media_root : String
- #media_url : String
- #min : Nil
- #min? : Nil | Nil
- #minlength : Nil
- #minlength? : Nil | Nil
- #multiple? : Bool
- #readonly? : Bool
-
#refrash_val_bool(val : Bool)
For the
DynFork::QPaladins::Tools#refrash_fields
method. - #regex : Nil
- #regex? : Nil | Nil
- #regex_err_msg : Nil
- #regex_err_msg? : Nil | Nil
- #required? : Bool
- #target_dir : String
- #thumbnails : Nil
- #thumbnails? : Nil | Nil
- #unique? : Bool
- #use_editor? : Bool
-
#value : Bool | Nil
Sets the value of an element.
-
#value=(value : Bool | Nil)
Sets the value of an element.
-
#value? : Bool | Nil | Nil
Sets the value of an element.
Instance methods inherited from struct DynFork::Fields::Field
choices_from_json(json : String) : Nil
choices_from_json,
disabled=(disabled : Bool)
disabled=,
disabled? : Bool
disabled?,
errors : Array(String)
errors,
errors=(errors : Array(String))
errors=,
field_type : String
field_type,
group : UInt8
group,
hide=(hide : Bool)
hide=,
hide? : Bool
hide?,
hint : String
hint,
id : String
id,
id=(id : String)
id=,
ignored? : Bool
ignored?,
label : String
label,
name : String
name,
name=(name : String)
name=,
slug_sources : Array(String)
slug_sources,
warning : String
warning,
warning=(warning : String)
warning=
Constructor methods inherited from struct DynFork::Fields::Field
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(label : String = "", default : Bool | Nil = false, hide : Bool = false, disabled : Bool = false, ignored : Bool = false, hint : String = "")
#
Instance Method Detail
def group : UInt8
#
To optimize field traversal in the paladins/check()
method.
WARNING It is recommended not to change.