JFormFieldCombo
Extends \JFormFieldListForm Field class for the Joomla Platform.
Implements a combo box field.
since |
1.7.0 |
---|---|
package |
Joomla.Platform |
Methods
__get
Method to get certain otherwise inaccessible properties from the form field object.
__get(string $name) : mixed
since |
3.7.0 |
---|
Arguments
- $name
string
The property name for which to get the value.
Response
mixed
The property value or null.
addOption
Method to add an option to the list field.
addOption(string $text, array $attributes = array()) : \JFormFieldList
since |
3.7.0 |
---|
Arguments
- $text
string
Text/Language variable of the option.- $attributes
array
Array of attributes ('name' => 'value' format)
Response
\JFormFieldList
For chaining.
getInput
Method to get the field input markup for a generic list.
getInput() : string
Use the multiple attribute to enable multiselect.
since |
3.7.0 |
---|
Response
string
The field input markup.
getLayoutData
Method to get the data to be passed to the layout for rendering.
getLayoutData() : array
since |
3.8.0 |
---|
Response
array
getOptions
Method to get the field options.
getOptions() : array
since |
3.7.0 |
---|
Response
array
The field option objects.
Properties
type
The form field type.
since |
1.7.0 |
---|
Type(s)
string
layout
Name of the layout being used to render the field
since |
3.8.0 |
---|
Type(s)
string