FormBehavior
Utility class for form related behaviors
since |
3.0 |
---|---|
deprecated |
4.0 will be removed in 6.0 Will be removed without replacement Use choice.js instead Example: Factory::getDocument()->getWebAssetManager()->enableAsset('choicesjs'); HTMLHelper::_('webcomponent', 'system/webcomponents/joomla-field-fancy-select.min.js', ['version' => 'auto', 'relative' => true]); |
package |
Joomla CMS |
Methods
ajaxchosen
Method to load the AJAX Chosen library
ajaxchosen(\Joomla\Registry\Registry options, debug = null) :
If debugging mode is on an uncompressed version of AJAX Chosen is included for easier debugging.
since |
3.0 |
---|
Arguments
- options
Registry
Options in a Registry object- debug
mixed
Is debugging mode on? [optional]
Response
void
chosen
Method to load the Chosen JavaScript framework and supporting CSS into the document head
chosen( selector = '.advancedSelect', debug = null, mixed||string|int options = []) :
If debugging mode is on an uncompressed version of Chosen is included for easier debugging.
since |
3.0 |
---|
Arguments
- selector
string
Class for Chosen elements.- debug
mixed
Is debugging mode on? [optional]- options
array<string|int, mixed>
the possible Chosen options as name => value [optional]
Response
void
Properties
loaded
Array containing information for loaded files
since |
3.0 |
---|
Type(s)
array<string|int, mixed>