struct

DynFork::Fields::URLField

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

Field for entering URL addresses. WARNING: Used validator Valid.url?.

Constructors

new(label : String = "", default : String | Nil = nil, placeholder : String = "", maxlength : UInt32 | Nil = 2083, hide : Bool = false, unique : 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

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
input_type

Html tag: input type="url".

Source
input_type?

Html tag: input type="url".

Source
maxlength

The maximum number of characters allowed in the text.
Max URL length in address bar:
Google Chrome: 2083
Edge: 2083
Internet Explorer: 2083
Safari: 80 000
Firefox: 65 536

Source
maxlength?

The maximum number of characters allowed in the text.
Max URL length in address bar:
Google Chrome: 2083
Edge: 2083
Internet Explorer: 2083
Safari: 80 000
Firefox: 65 536

Source
minlength

The minimum number of characters allowed in the text.

Source
minlength?

The minimum number of characters allowed in the text.

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_str(val : String) : Nil

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

Source
required?

Required field.

Source
unique?

The unique value of a field in a collection.

Source
value

Sets the value of an element.

Source
value=(value : String | Nil)

Sets the value of an element.

Source
value?

Sets the value of an element.

Source