struct

DynFork::Fields::Field

Inherits JSON::Serializable < Struct < Value < Object

An abstract structure with common fields for all field types.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

choices_from_json(json : String) : Nil
Source
disabled=(disabled : Bool)

Blocks access and modification of the element.

Source
disabled?

Blocks access and modification of the element.

Source
errors

WARNING: The value is determined automatically.

Source
errors=(errors : Array(String))

WARNING: The value is determined automatically.

Source
field_type

Field type - Structure Name.

Source
group

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

Source
hide=(hide : Bool)

Hide field from user.

Source
hide?

Hide field from user.

Source
hint

Additional explanation for the user. An alternative for the placeholder parameter.

Source
id

Format: "ModelName--field-name" WARNING: The value is determined automatically.

Source
id=(id : String)

Format: "ModelName--field-name" WARNING: The value is determined automatically.

Source
ignored?

If true, the value of this field is not saved in the database.

Source
label

Text label for a web form field.

Source
name

Field name. WARNING: The value is determined automatically.

Source
name=(name : String)

Field name. WARNING: The value is determined automatically.

Source
slug_sources
Source
warning

Warning information.

Source
warning=(warning : Array(String))

Warning information.

Source