struct

DynFork::Fields::SlugField

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

Automatically creates a label from letters, numbers, and hyphens. NOTE: Convenient to use for Url addresses. WARNING: Allowed field types: HashField, TextField, EmailField, DateField, DateTimeField, I64Field, F64Field.

Constructors

new(label : String = "", placeholder : String = "", hide : Bool = false, disabled : Bool = false, readonly : Bool = true, ignored : Bool = false, slug_sources : Array(String) = ["hash"], hint : String = "", warning : Array(String) = Array(String).new)
Source

Instance methods

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

Source
input_type?

Html tag: input type="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
slug_sources

Getter for slug_sources.

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