FieldCheckbox class
Class for a checkbox field.
Signature:
export declare class FieldCheckbox extends Field<CheckboxBool>
Extends: Field<CheckboxBool>
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| (not declared) | Default character for the checkmark. | |
boolean | Serializable fields are saved by the serializer, non-serializable fields are not. Editable fields should also be serializable. | ||
boolean | null | NOTE: The default value is set in |
Methods
Method | Modifiers | Description |
|---|---|---|
| Configure the field based on the given map of options. | |
| Ensure that the input value is valid ('TRUE' or 'FALSE'). | |
| Update the value of the field, and update the checkElement. | |
Get the text of this field. Used when the block is collapsed. | ||
Get the value of this field, either 'TRUE' or 'FALSE'. | ||
Get the boolean value of this field. | ||
Create the block UI for this checkbox. | ||
Set the character used for the check mark. | ||
| Toggle the state of the checkbox on click. |