abstract struct DynFork::Fields::Field
- DynFork::Fields::Field
- Struct
- Value
- Object
Overview
An abstract structure with common fields for all field types.
Included Modules
- JSON::Serializable
Direct Known Subclasses
- DynFork::Fields::BoolField
- DynFork::Fields::ChoiceF64DynField
- DynFork::Fields::ChoiceF64Field
- DynFork::Fields::ChoiceF64MultDynField
- DynFork::Fields::ChoiceF64MultField
- DynFork::Fields::ChoiceI64DynField
- DynFork::Fields::ChoiceI64Field
- DynFork::Fields::ChoiceI64MultDynField
- DynFork::Fields::ChoiceI64MultField
- DynFork::Fields::ChoiceTextDynField
- DynFork::Fields::ChoiceTextField
- DynFork::Fields::ChoiceTextMultDynField
- DynFork::Fields::ChoiceTextMultField
- DynFork::Fields::ColorField
- DynFork::Fields::DateField
- DynFork::Fields::DateTimeField
- DynFork::Fields::EmailField
- DynFork::Fields::F64Field
- DynFork::Fields::FileField
- DynFork::Fields::HashField
- DynFork::Fields::I64Field
- DynFork::Fields::ImageField
- DynFork::Fields::IPField
- DynFork::Fields::PasswordField
- DynFork::Fields::PhoneField
- DynFork::Fields::SlugField
- DynFork::Fields::TextField
- DynFork::Fields::URLField
Defined in:
dynfork/fields/field.crConstructors
Instance Method Summary
- #choices_from_json(json : String) : Nil
-
#disabled=(disabled : Bool)
Blocks access and modification of the element.
-
#disabled? : Bool
Blocks access and modification of the element.
-
#errors : Array(String)
WARNING The value is determined automatically.
-
#errors=(errors : Array(String))
WARNING The value is determined automatically.
-
#field_type : String
Field type - Structure Name.
-
#group : UInt8
To optimize field traversal in the
check
method. -
#hide=(hide : Bool)
Hide field from user.
-
#hide? : Bool
Hide field from user.
-
#hint : String
Additional explanation for the user.
-
#id : String
Format: "ModelName--field-name" WARNING: The value is determined automatically.
-
#id=(id : String)
Format: "ModelName--field-name" WARNING: The value is determined automatically.
-
#ignored? : Bool
If true, the value of this field is not saved in the database.
-
#label : String
Text label for a web form field.
-
#name : String
Field name.
-
#name=(name : String)
Field name.
- #slug_sources : Array(String)
-
#warning : Array(String)
Warning information.
-
#warning=(warning : Array(String))
Warning information.
Constructor Detail
Instance Method Detail
To optimize field traversal in the check
method.
WARNING It is recommended not to change.
Additional explanation for the user.
An alternative for the placeholder
parameter.
Format: "ModelName--field-name"
WARNING The value is determined automatically.