SwitchCheckbox¶
SwitchCheckbox element is an input with checkbox type. It is similar to Checkbox element. They differ in appearance.
TODO dodać screen jak to wygląda, gdy już konfigurator bedzie gotowy
Build-in Validators¶
Element has build-in one validator. Check if value equals 0
or 1
.
Available Validators¶
Element does not have available validators.
Relations Support¶
Element supports relations between elements.
Configuration output schema¶
schema
{
"<element_type>" : "switchCheckbox",
"<element_name>" : string,
"<element_label>" : string,
"<element_labelDescription>" : string,
"<element_isRequired>" : bool,
"<element_isHidden>" : bool,
"<element_defaultValue>" : int
}
example
{
"type": "checkbox",
"name": "shouldShowAuthor",
"label": "Author of the entry",
"defaultValue": 0
}
Element value¶
If value is filled it can be 0
or 1
.