public static
|
#
framework( boolean $extras = false, mixed $debug = null )
Method to load the MooTools framework into the document head
Method to load the MooTools framework into the document head
If debugging mode is on an uncompressed version of MooTools is included for
easier debugging.
Deprecated
4.0 Update scripts to jquery
Parameters
- $extras
boolean - $extras Flag to determine whether to load MooTools More in addition to Core
- $debug
mixed - $debug Is debugging mode on? [optional]
Since
1.6
|
public static
|
#
core( )
Method to load core.js into the document head.
Method to load core.js into the document head.
Core.js defines the 'Joomla' namespace and contains functions which are used
across extensions
Since
3.3
|
public static
|
#
caption( string $selector = 'img.caption' )
Add unobtrusive JavaScript support for image captions.
Add unobtrusive JavaScript support for image captions.
Parameters
- $selector
string - $selector The selector for which a caption behaviour is to be applied.
Since
1.5
|
public static
|
#
formvalidation( )
Add unobtrusive JavaScript support for form validation.
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.
Since
1.5
Deprecated
3.4 Use formvalidator instead
|
public static
|
#
formvalidator( )
Add unobtrusive JavaScript support for form validation.
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.
Since
3.4
|
public static
|
#
switcher( )
Add unobtrusive JavaScript support for submenu switcher support
Add unobtrusive JavaScript support for submenu switcher support
Since
1.5
|
public static
|
#
combobox( )
Add unobtrusive JavaScript support for a combobox effect.
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.
Since
1.5
|
public static
|
#
tooltip( string $selector = '.hasTip', array $params = array() )
Add unobtrusive JavaScript support for a hover tooltips.
Add unobtrusive JavaScript support for a hover tooltips.
Add a title attribute to any element in the form title="title::text"
Uses the core Tips class in MooTools.
Parameters
- $selector
string - $selector The class selector for the tooltip.
- $params
array - $params An array of options for the tooltip. Options for the tooltip can be: -
maxTitleChars integer The maximum number of characters in the tooltip title
(defaults to 50). - offsets object The distance of your tooltip from the mouse
(defaults to {'x': 16, 'y': 16}). - showDelay integer The millisecond delay the
show event is fired (defaults to 100). - hideDelay integer The millisecond delay
the hide hide is fired (defaults to 100). - className string The className your
tooltip container will get. - fixed boolean If set to true, the toolTip will not
follow the mouse. - onShow function The default function for the show event,
passes the tip element and the currently hovered element. - onHide function The
default function for the hide event, passes the currently hovered element.
Since
1.5
|
public static
|
#
modal( string $selector = 'a.modal', array $params = array() )
Add unobtrusive JavaScript support for modal links.
Add unobtrusive JavaScript support for modal links.
Deprecated
4.0 Use the modal equivalent from bootstrap
Parameters
- $selector
string - $selector The selector for which a modal behaviour is to be applied.
- $params
array - $params An array of parameters for the modal behaviour. Options for the modal
behaviour can be: - ajaxOptions - size - shadow - overlay - onOpen - onClose -
onUpdate - onResize - onShow - onHide
Since
1.5
|
public static
|
#
multiselect( string $id = 'adminForm' )
JavaScript behavior to allow shift select in grids
JavaScript behavior to allow shift select in grids
Parameters
- $id
string - $id The id of the form for which a multiselect behaviour is to be applied.
Since
1.7
|
public static
|
#
tree( string $id, array $params = array(), array $root = array() )
Add unobtrusive javascript support for a collapsible tree.
Add unobtrusive javascript support for a collapsible tree.
Parameters
- $id
string - $id An index
- $params
array - $params An array of options.
- $root
array - $root The root node
Since
1.5
|
public static
|
#
calendar( )
Add unobtrusive JavaScript support for a calendar control.
Add unobtrusive JavaScript support for a calendar control.
Deprecated
4.0
Since
1.5
|
public static
|
#
colorpicker( )
Add unobtrusive JavaScript support for a color picker.
Add unobtrusive JavaScript support for a color picker.
Deprecated
4.0 Use directly the field or the layout
Since
1.7
|
public static
|
#
simplecolorpicker( )
Add unobtrusive JavaScript support for a simple color picker.
Add unobtrusive JavaScript support for a simple color picker.
Deprecated
4.0 Use directly the field or the layout
Since
3.1
|
public static
|
#
keepalive( )
Keep session alive, for example, while editing or creating an article.
Keep session alive, for example, while editing or creating an article.
Since
1.5
|
public static
|
#
highlighter( array $terms, string $start = 'highlighter-start', string $end = 'highlighter-end', string $className = 'highlight', string $tag = 'span' )
Highlight some words via Javascript.
Highlight some words via Javascript.
Parameters
- $terms
array - $terms Array of words that should be highlighted.
- $start
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.
- $end
string - $end ID of the element that end this section. Note this element will be removed
from the DOM.
- $className
string - $className Class name of the element highlights are wrapped in.
- $tag
string - $tag Tag that will be used to wrap the highlighted words.
Since
2.5
|
public static
|
#
noframes( )
Break us out of any containing iframes
Break us out of any containing iframes
Deprecated
4.0 Add a X-Frame-Options HTTP Header with the SAMEORIGIN value instead.
Since
1.5
|
protected static
string
|
#
_getJSObject( array $array = array() )
Internal method to get a JavaScript object notation string from an array
Internal method to get a JavaScript object notation string from an array
Deprecated
13.3 (Platform) & 4.0 (CMS) - Use JHtml::getJSObject() instead.
Parameters
- $array
array - $array The array to convert to JavaScript object notation
Returns
string - JavaScript object notation representation of the array
Since
1.5
|
public static
|
#
tabstate( )
Add unobtrusive JavaScript support to keep a tab state.
Add unobtrusive JavaScript support to keep a tab state.
Note that keeping tab state only works for inner tabs if in accordance with
the following example:
` parent tab = permissions child tab =
permission-<identifier> `
Each tab header <a> tag also should have a unique href
attribute
Since
3.2
|
public static
|
#
polyfill( string|array $polyfillTypes = null, string $conditionalBrowser = null )
Add javascript polyfills.
Add javascript polyfills.
Parameters
- $polyfillTypes
string|array - $polyfillTypes The polyfill type(s). Examples: event, array('event',
'classlist').
- $conditionalBrowser
string - $conditionalBrowser An IE conditional expression. Example: lt IE 9 (lower than
IE 9).
Since
3.7.0
|
protected static
string
|
#
calendartranslation( )
Internal method to translate the JavaScript Calendar
Internal method to translate the JavaScript Calendar
Returns
string - JavaScript that translates the object
Since
1.5
|