FormBehavior

Utility class for form related behaviors

abstract deprecated
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) : 
static

If debugging mode is on an uncompressed version of AJAX Chosen is included for easier debugging.

since

3.0

Arguments

options

RegistryOptions in a Registry object

debug

mixedIs 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 = []) : 
static

If debugging mode is on an uncompressed version of Chosen is included for easier debugging.

since

3.0

Arguments

selector

stringClass for Chosen elements.

debug

mixedIs 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

static
since

3.0

Type(s)

array<string|int, mixed>