Class RadioList (namespace Nette\Forms)
Set of radio button controls.
Object | --Component | --FormControl | --RadioList
Public Method Summary | |
---|---|
RadioList |
|
Html |
Returns container HTML element template.
|
Html |
getControl
([mixed $key =
NULL ])
Generates control's HTML element.
|
array |
getItems
()
Returns options from which to choose.
|
void |
getLabel
([string $caption =
NULL ])
Generates label's HTML element.
|
Html |
Returns separator HTML element template.
|
mixed |
getValue
([bool $raw =
FALSE ])
Returns selected radio value.
|
RadioList |
setItems
($items)
Sets options from which to choose.
|
static bool |
validateFilled
(IFormControl $control)
Filled validator: has been any radio button selected?
|
Methods Inherited From Component |
---|
__construct(), attached(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent(), __clone(), __wakeup() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
protected Html | $container |
|
line 43 container element template |
|
protected array | $items | array() |
line 46 |
|
protected Html | $separator |
|
line 40 separator element template |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 54 __constructpublic RadioList __construct ([string $label =
|
|||||||||||||||
line 116 getContainerPrototypepublic Html getContainerPrototype () Returns container HTML element template.
|
|||||||||||||||
line 128 getControlpublic Html getControl ([mixed $key = Generates control's HTML element.
|
|||||||||||||||
line 94 getItemspublic array getItems () Returns options from which to choose.
|
|||||||||||||||
line 176 getLabelpublic void getLabel ([string $caption = Generates label's HTML element.
|
|||||||||||||||
line 105 getSeparatorPrototypepublic Html getSeparatorPrototype () Returns separator HTML element template.
|
|||||||||||||||
line 70 getValuepublic mixed getValue ([bool $raw = Returns selected radio value.
|
|||||||||||||||
line 82 setItemspublic RadioList setItems ($items) Sets options from which to choose.
|
|||||||||||||||
line 190 validateFilledpublic static bool validateFilled (IFormControl $control) Filled validator: has been any radio button selected?
|