Utility class for JavaScript behaviors
- Depuis
- 1.5
◆ calendartranslation()
static calendartranslation |
( |
| ) |
|
|
staticprotected |
◆ combobox()
Add unobtrusive JavaScript support for a combobox effect.
Note that this control is only reliable in absolutely positioned elements. Avoid using a combobox in a slider or dynamic pane.
- Renvoie
- void
- Depuis
- 1.5
- Obsolète:
- 5.0 Use the script directly
Références Factory\getDocument().
◆ core()
Method to load core.js into the document head.
Core.js defines the 'Joomla' namespace and contains functions which are used across extensions
- Renvoie
- void
- Depuis
- 3.3
- Obsolète:
- 5.0 Use Joomla::enable();
Références Factory\getApplication().
◆ formvalidator()
Add unobtrusive JavaScript support for form validation.
To enable form validation the form tag must have class="form-validate". Each field that needs to be validated needs to have class="validate". Additional handlers can be added to the handler for username, password, numeric and email. To use these add class="validate-email" and so on.
- Renvoie
- void
- Depuis
- 3.4
- Obsolète:
- 5.0 Use the script directly
Références Factory\getDocument().
◆ highlighter()
static highlighter |
( |
array |
$terms, |
|
|
|
$start = 'highlighter-start' , |
|
|
|
$end = 'highlighter-end' , |
|
|
|
$className = 'highlight' , |
|
|
|
$tag = 'span' |
|
) |
| |
|
static |
Highlight some words via Javascript.
- Paramètres
-
array | $terms | Array of words that should be highlighted. |
string | $start | ID of the element that marks the begin of the section in which words should be highlighted. Note this element will be removed from the DOM. |
string | $end | ID of the element that end this section. Note this element will be removed from the DOM. |
string | $className | Class name of the element highlights are wrapped in. |
string | $tag | Tag that will be used to wrap the highlighted words. |
- Renvoie
- void
- Depuis
- 2.5
- Obsolète:
- 5.0 Use the script directly
Références $doc, $start, et Factory\getDocument().
◆ keepalive()
◆ multiselect()
static multiselect |
( |
|
$id = 'adminForm' | ) |
|
|
static |
JavaScript behavior to allow shift select in grids
- Paramètres
-
string | $id | The id of the form for which a multiselect behaviour is to be applied. |
- Renvoie
- void
- Depuis
- 1.7
- Obsolète:
- 5.0 Use the script directly
Références $id, et Factory\getDocument().
◆ $loaded
La documentation de cette classe a été générée à partir du fichier suivant :