RadioList
class RadioList extends ChoiceControl
Set of radio button controls.
Properties
| $generateId | |||
| protected | $separator | ||
| protected | $container | ||
| protected | $itemLabel | ||
| Html read-only | $separatorPrototype | ||
| Html read-only | $containerPrototype | ||
| Html read-only | $itemLabelPrototype |
Methods
No description
Generates control's HTML element.
Generates label's HTML element.
Returns the HTML input element for a specific radio button item by key.
Returns the label element for the whole radio 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 32
__construct(string|Stringable|null $label = null, array|null $items = null)
No description
at line 43
Html|string
getControl()
Generates control's HTML element.
at line 73
Html|string|null
getLabel(string|Stringable|null $caption = null)
Generates label's HTML element.
at line 82
Html|null
getControlPart($key = null)
Returns the HTML input element for a specific radio button item by key.
at line 97
Html|null
getLabelPart($key = null)
Returns the label element for the whole radio list, or the item label for a specific key.
at line 109
Html
getSeparatorPrototype()
Returns separator HTML element template.
at line 118
Html
getContainerPrototype()
Returns container HTML element template.
at line 127
Html
getItemLabelPrototype()
Returns item label HTML element template.