abstract struct DynFork::Fields::Field

Overview

An abstract structure with common fields for all field types.

Included Modules

Direct Known Subclasses

Defined in:

dynfork/fields/field.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def choices_from_json(json : String) : Nil #

[View source]
def disabled=(disabled : Bool) #

Blocks access and modification of the element.


[View source]
def disabled? : Bool #

Blocks access and modification of the element.


[View source]
def errors : Array(String) #

WARNING The value is determined automatically.


[View source]
def errors=(errors : Array(String)) #

WARNING The value is determined automatically.


[View source]
def field_type : String #

Field type - Structure Name.


[View source]
def group : UInt8 #

To optimize field traversal in the check method.

WARNING It is recommended not to change.


[View source]
def hide=(hide : Bool) #

Hide field from user.


[View source]
def hide? : Bool #

Hide field from user.


[View source]
def hint : String #

Additional explanation for the user. An alternative for the placeholder parameter.


[View source]
def id : String #

Format: "ModelName--field-name"

WARNING The value is determined automatically.


[View source]
def id=(id : String) #

Format: "ModelName--field-name"

WARNING The value is determined automatically.


[View source]
def ignored? : Bool #

If true, the value of this field is not saved in the database.


[View source]
def label : String #

Text label for a web form field.


[View source]
def name : String #

Field name.

WARNING The value is determined automatically.


[View source]
def name=(name : String) #

Field name.

WARNING The value is determined automatically.


[View source]
def slug_sources : Array(String) #

[View source]
def warning : Array(String) #

Warning information.


[View source]
def warning=(warning : Array(String)) #

Warning information.


[View source]