struct

DynFork::Fields::PasswordField

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

Field for entering password. NOTE: How to use, see example. WARNING: Used validator Valid.password?. WARNING: Default regular expression: /^[-._!"'#%&,:;<>=@{}~\$\(\)\*\+\/\\\?\[\]\^\|a-zA-Z0-9]+$/ WARNING: Valid characters by default: a-z A-Z 0-9 - . _ ! " ' # % & , : ; < > = @ { } ~ $ ( ) * + / \ ? [ ] ^ | WARNING: Default number of characters: min = 8, max = 256.

Constructors

new(label : String = "", placeholder : String = "", hide : Bool = false, required : Bool = true, ignored : Bool = false, 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="password".

Source
input_type?

Html tag: input type="password".

Source
maxlength

The maximum number of characters allowed in the text.

Source
maxlength?

The maximum number of characters allowed in the text.

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

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

Source
required?

Required field.

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