struct

DynFork::Fields::ChoiceI64DynField

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

Type of selective field with dynamic addition of elements. NOTE: For simulate relationship Many-to-One. NOTE: Elements are added via the ModelName.unit_manager(unit) method. NOTE: How to use, see example.

Constructors

new(label : String = "", hide : Bool = false, required : Bool = false, disabled : Bool = false, readonly : Bool = false, ignored : Bool = false, hint : String = "", warning : Array(String) = Array(String).new)
Source

Instance methods

choices

Html tag: select. NOTE: Example: [{5, "Title"}, {10, "Title 2"}]

Source
choices?

Html tag: select. NOTE: Example: [{5, "Title"}, {10, "Title 2"}]

Source
choices_from_json(json : String) : Nil

Add data for dynamic fields from the local @@meta cache.

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_i64(val : Int64) : Nil

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

Source
required?

Required field.

Source
value

Sets the value of an element.

Source
value=(value : Int64 | Nil)

Sets the value of an element.

Source
value?

Sets the value of an element.

Source