struct DynFork::Fields::BoolField

Overview

Boolean field.

Defined in:

dynfork/fields/bool.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 : Array(String) warning, warning=(warning : Array(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 = "", default : Bool | Nil = false, hide : Bool = false, disabled : Bool = false, ignored : Bool = false, hint : String = "", warning : Array(String) = Array(String).new) #

[View source]

Instance Method Detail

def default : Bool | Nil #

Value by default.


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

Value by default.


[View source]
def extract_default_bool : Bool | Nil #

[View source]
def extract_val_bool : Bool | 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="checkbox".


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

Html tag: input type="checkbox".


[View source]
def refrash_val_bool(val : Bool) #

[View source]
def value : Bool | Nil #

Sets the value of an element.


def value=(value : Bool | Nil) #

Sets the value of an element.


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

Sets the value of an element.