struct

DynFork::Fields::DateField

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

A field for entering a date. NOTE: Formats: dd-mm-yyyy | dd/mm/yyyy | dd.mm.yyyy | yyyy-mm-dd | yyyy/mm/dd | yyyy.mm.dd

Constructors

new(label : String = "", default : String | Nil = nil, placeholder : String = "", max : String | Nil = nil, min : String | Nil = nil, hide : Bool = false, required : Bool = false, disabled : Bool = false, readonly : Bool = false, ignored : Bool = false, hint : String = "", warning : Array(String) = [I18n.t("formats.interpolation", samples: ("dd-mm-yyyy | dd/mm/yyyy | " + "dd.mm.yyyy | yyyy-mm-dd | ") + "yyyy/mm/dd | yyyy.mm.dd")])
Source

Instance methods

default

Value by default. NOTE: *Example: 1970-01-01

Source
default?

Value by default. NOTE: *Example: 1970-01-01

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
hint

Additional explanation for the user.

Source
input_type

Html tag: input type="date".

Source
input_type?

Html tag: input type="date".

Source
max

The top value for entering a date.

Source
max?

The top value for entering a date.

Source
min

The lower value for entering a date.

Source
min?

The lower value for entering a date.

Source
placeholder

Displays prompt text.

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_date(val : Time) : Nil

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

Source
refrash_val_str(val : String) : Nil

For update the date in the string format.

Source
required?

Required field.

Source
time_object

Get time object from value.

Source
value

Sets the value of an element. NOTE: Example: 1970-01-01

Source
value=(value : String | Nil)

Sets the value of an element. NOTE: Example: 1970-01-01

Source
value?

Sets the value of an element. NOTE: Example: 1970-01-01

Source