struct

DynFork::Fields::ChoiceTextMultField

Inherits DynFork::Fields::Field < JSON::Serializable < Struct < Value < Object

Type of selective field with static of elements. NOTE: With multiple choice. NOTE: How to use, see example.

Constructors

new(label : String = "", default : Array(String) | Nil = nil, hide : Bool = false, required : Bool = false, disabled : Bool = false, readonly : Bool = false, ignored : Bool = false, hint : String = "", warning : Array(String) = Array(String).new, choices : Array(Tuple(String, String)) | Nil = Array(Tuple(String, String)).new)
Source

Instance methods

choices

Html tag: select multiple. NOTE: Example: [{"value", "Title"}, {"value 2", "Title 2"}]

Source
choices?

Html tag: select multiple. NOTE: Example: [{"value", "Title"}, {"value 2", "Title 2"}]

Source
default

Value by default.

Source
default?

Value by default.

Source
field_type

Field type - Structure Name.

Source
group

To optimize field traversal in the paladins/check() method. WARNING: It is recommended not to change.

Source
has_value?

Does the field value match the possible options in choices.

Source
multiple?

Specifies that multiple options can be selected at once.

Source
readonly=(readonly : Bool)

Specifies that the field cannot be modified by the user.

Source
readonly?

Specifies that the field cannot be modified by the user.

Source
refrash_val_arr_str(val : Array(String)) : Nil

For the DynFork::QPaladins::Tools#refrash_fields method.

Source
required?

Required field.

Source
value

Sets the value of an element.

Source
value=(value : Array(String) | Nil)

Sets the value of an element.

Source
value?

Sets the value of an element.

Source