CheckboxList
class CheckboxList extends MultiChoiceControl
Set of checkboxes.
Properties
| protected | $separator | ||
| protected | $container | ||
| protected | $itemLabel | ||
| Html read-only | $separatorPrototype | ||
| Html read-only | $containerPrototype | ||
| Html read-only | $itemLabelPrototype |
Methods
No description
Loads HTTP data.
Generates control's HTML element.
Generates label's HTML element.
Returns the HTML input element for a specific checkbox item by key.
Returns the label element for the whole checkbox list, or the item label for a specific key.
Returns separator HTML element template.
Returns container HTML element template.
Returns item label HTML element template.
Details
at line 31
__construct(string|Stringable|null $label = null, array|null $items = null)
No description
at line 42
void
loadHttpData()
Loads HTTP data.
at line 54
Html|string
getControl()
Generates control's HTML element.
at line 78
Html|string|null
getLabel(string|Stringable|null $caption = null)
Generates label's HTML element.
at line 87
Html|null
getControlPart($key = null)
Returns the HTML input element for a specific checkbox item by key.
at line 103
Html|null
getLabelPart($key = null)
Returns the label element for the whole checkbox list, or the item label for a specific key.
at line 115
Html
getSeparatorPrototype()
Returns separator HTML element template.
at line 124
Html
getContainerPrototype()
Returns container HTML element template.
at line 133
Html
getItemLabelPrototype()
Returns item label HTML element template.