Jquery
Utility class for jQuery JavaScript behaviors
since |
3.0 |
---|---|
package |
Joomla CMS |
Methods
framework
Method to load the jQuery JavaScript framework into the document head
framework( noConflict = true, debug = null, migrate = false) :
If debugging mode is on an uncompressed version of jQuery is included for easier debugging.
since |
3.0 |
---|---|
deprecated |
4.0 will be removed in 6.0 Use webasset manager instead Example: $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); $wa->useScript('jquery'); $wa->useScript('jquery-noconflict'); $wa->useScript('jquery-migrate'); |
Arguments
- noConflict
bool
True to load jQuery in noConflict mode [optional]- debug
mixed
Is debugging mode on? [optional]- migrate
bool
True to enable the jQuery Migrate plugin
Response
void
token
Auto set CSRF token to ajaxSetup so all jQuery ajax call will contains CSRF token.
token( name = 'csrf.token') :
throws |
|
---|---|
since |
3.8.0 |
Arguments
- name
string
The CSRF meta tag name.
Response
void
Properties
loaded
Array containing information for loaded files
since |
3.0 |
---|
Type(s)
array<string|int, mixed>