struct DynFork::Fields::PasswordField

Overview

Field for entering password.

NOTE How to use, see example.

WARNING Default regular expression: /^[-._!"`'#%&,:;<>=@{}~$()*+/\?[]^|a-zA-Z0-9]+$/

WARNING Valid characters by default: a-z A-Z 0-9 - . _ ! " ` ' # % & , : ; < > = @ { } ~ $ ( ) * + / \ ? [ ] ^ |

WARNING Default number of characters: max = 256, min = 8

Defined in:

dynfork/fields/password.cr

Constructors

Instance Method Summary

Instance methods inherited from struct DynFork::Fields::Field

choices_from_json(json : String) : Nil choices_from_json, disabled=(disabled : Bool) disabled=, disabled? : Bool disabled?, errors : Array(String) errors, errors=(errors : Array(String)) errors=, field_type : String field_type, group : UInt8 group, hide=(hide : Bool) hide=, hide? : Bool hide?, hint : String hint, id : String id, id=(id : String) id=, ignored? : Bool ignored?, label : String label, name : String name, name=(name : String) name=, slug_sources : Array(String) slug_sources, warning : String warning, warning=(warning : String) warning=

Constructor methods inherited from struct DynFork::Fields::Field

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(label : String = "", placeholder : String = "", maxlength : UInt32 | Nil = 256, minlength : UInt32 | Nil = 8, regex : String | Nil = nil, regex_err_msg : String | Nil = nil, hide : Bool = false, required : Bool = true, ignored : Bool = false, hint : String = "", warning : String = "") #

[View source]

Instance Method Detail

def choices : Nil #

[View source]
def choices? : Nil | Nil #

[View source]
def default : Nil #

[View source]
def default? : Nil | Nil #

[View source]
def field_type : String #

Field type - Structure Name.


[View source]
def group : UInt8 #

To optimize field traversal in the paladins/check() method.

WARNING It is recommended not to change.


[View source]
def input_type : String | Nil #

Html tag: input type="password".


[View source]
def input_type? : String | Nil | Nil #

Html tag: input type="password".


[View source]
def max : Nil #

[View source]
def max? : Nil | Nil #

[View source]
def maxlength : UInt32 | Nil #

The maximum number of characters allowed in the text.


[View source]
def maxlength? : UInt32 | Nil | Nil #

The maximum number of characters allowed in the text.


[View source]
def maxsize : Float32 #

[View source]
def media_root : String #

[View source]
def media_url : String #

[View source]
def min : Nil #

[View source]
def min? : Nil | Nil #

[View source]
def minlength : UInt32 | Nil #

The minimum number of characters allowed in the text.


[View source]
def minlength? : UInt32 | Nil | Nil #

The minimum number of characters allowed in the text.


[View source]
def multiple? : Bool #

[View source]
def placeholder : String #

Displays prompt text.


[View source]
def readonly? : Bool #

[View source]
def refrash_val_str(val : String) : Nil #

[View source]
def regex : String | Nil #

Regular expression to validate the value.


[View source]
def regex? : String | Nil | Nil #

Regular expression to validate the value.


[View source]
def regex_err_msg : String | Nil #

Error message.


[View source]
def regex_err_msg? : String | Nil | Nil #

Error message.


[View source]
def required? : Bool #

Required field.


[View source]
def target_dir : String #

[View source]
def thumbnails : Nil #

[View source]
def thumbnails? : Nil | Nil #

[View source]
def unique? : Bool #

[View source]
def use_editor? : Bool #

[View source]
def value : String | Nil #

Sets the value of an element.


def value=(value : String | Nil) #

Sets the value of an element.


[View source]
def value? : String | Nil | Nil #

Sets the value of an element.