Radio
Radio
Checkbox
- Full name: \Gibbon\Forms\Input\Radio
- Parent class: \Gibbon\Forms\Input\Input
Methods
- __construct — Create an HTML form input.
- checked — Set the value of the radio element.
- inline — Sets multiple radio elements to display horizontally.
- addValidation — Dead-end stub for interface: LiveValidation does not support Radio elements.
Inherited from MultipleOptionsTrait
Inherited from Element
Inherited from Input
- setRow
- addValidationOption
- addValidation
- isValidatable
- hasValidation
- getValidationAsJSON
- getValidationOutput
Inherited from InputAttributesTrait
- setName
- getName
- setValue
- getValue
- loadFrom
- loadFromCSV
- setSize
- getSize
- isDisabled
- setDisabled
- getDisabled
- isRequired
- setRequired
- getRequired
- readonly
- setReadonly
- getReadonly
- setTabIndex
- getTabIndex
Inherited from Element
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
__construct
Create an HTML form input.
Radio::__construct( string $name )
checked
Set the value of the radio element.
Radio::checked( mixed $value ): self
Returns Self: This method can be chained.
inline
Sets multiple radio elements to display horizontally.
Radio::inline( boolean $value = true ): self
Returns Self: This method can be chained.
addValidation
Dead-end stub for interface: LiveValidation does not support Radio elements.
Radio::addValidation( string $type, string $params = '' )