struct

DynFork::Fields::DateTimeField

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

A field for entering a date and time. NOTE: Formats: dd-mm-yyyy hh:mm:ss | dd/mm/yyyy hh:mm:ss | dd.mm.yyyy hh:mm:ss | dd-mm-yyyyThh:mm:ss | dd/mm/yyyyThh:mm:ss | dd.mm.yyyyThh:mm:ss | yyyy-mm-dd hh:mm:ss | yyyy/mm/dd hh:mm:ss | yyyy.mm.dd hh:mm:ss | yyyy-mm-ddThh:mm:ss | yyyy/mm/ddThh:mm:ss | yyyy.mm.ddThh:mm:ss

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 hh:mm:ss | dd/mm/yyyy hh:mm:ss | " + "dd.mm.yyyy hh:mm:ss | dd-mm-yyyyThh:mm:ss | ") + "dd/mm/yyyyThh:mm:ss | dd.mm.yyyyThh:mm:ss | ") + "yyyy-mm-dd hh:mm:ss | yyyy/mm/dd hh:mm:ss | ") + "yyyy.mm.dd hh:mm:ss | yyyy-mm-ddThh:mm:ss | ") + "yyyy/mm/ddThh:mm:ss | yyyy.mm.ddThh:mm:ss")])
Source

Instance methods

default

Value by default. NOTE: Example: 1970-01-01T00:00:00

Source
default?

Value by default. NOTE: Example: 1970-01-01T00:00:00

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="datetime".

Source
input_type?

Html tag: input type="datetime".

Source
max

The top value for entering a date and time.

Source
max?

The top value for entering a date and time.

Source
min

The lower value for entering a date and time.

Source
min?

The lower value for entering a date and time.

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

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

Source
refrash_val_str(val : String) : Nil

For update the date and time 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-01T00:00:00

Source
value=(value : String | Nil)

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

Source
value?

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

Source