struct

DynFork::Fields::ChoiceF64Field

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

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

Constructors

new(label : String = "", default : Float64 | 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(Float64, String)) | Nil = Array(Tuple(Float64, String)).new)
Source

Instance methods

choices

Html tag: select. NOTE: Example: [{5.0, "Title"}, {5.25, "Title 2"}]

Source
choices?

Html tag: select. NOTE: Example: [{5.0, "Title"}, {5.25, "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_f64(val : Float64) : Nil

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

Source
required?

Required field.

Source
value

Sets the value of an element.

Source
value=(value : Float64 | Nil)

Sets the value of an element.

Source
value?

Sets the value of an element.

Source