Class RadioList (namespace Nette\Forms)
Set of radio button controls.
Object | --Component | --FormControl | --RadioList
Public Method Summary | |
---|---|
RadioList |
__construct
(string $label, [$items =
NULL ])
|
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
()
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(), getService(), getServiceLocator(), lookup(), lookupPath(), monitor(), setParent(), setServiceLocator(), validateParent(), __clone(), __wakeup() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
protected Html | $container |
|
line 40 container element template |
|
protected array | $items | array() |
line 43 |
|
protected Html | $separator |
|
line 37 separator element template |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 51 __constructpublic RadioList __construct (string $label, [$items =
|
|||||||||||||||
line 113 getContainerPrototypepublic Html getContainerPrototype () Returns container HTML element template.
|
|||||||||||||||
line 125 getControlpublic Html getControl ([mixed $key = Generates control's HTML element.
|
|||||||||||||||
line 91 getItemspublic array getItems () Returns options from which to choose.
|
|||||||||||||||
line 172 getLabelpublic void getLabel () Generates label's HTML element.
|
|||||||||||||||
line 102 getSeparatorPrototypepublic Html getSeparatorPrototype () Returns separator HTML element template.
|
|||||||||||||||
line 67 getValuepublic mixed getValue ([bool $raw = Returns selected radio value.
|
|||||||||||||||
line 79 setItemspublic RadioList setItems ($items) Sets options from which to choose.
|
|||||||||||||||
line 186 validateFilledpublic static bool validateFilled (IFormControl $control) Filled validator: has been any radio button selected?
|