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 #

[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.


[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 readonly=(readonly : Bool) #

Specifies that the field cannot be modified by the user.


[View source]
def readonly? : Bool #

Specifies that the field cannot be modified by the user.


[View source]
def required? : Bool #

Required field.


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

[View source]
def warning : String #

Warning information.


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

Warning information.


[View source]