Back to Joomla project (class list)

Class Behavior - list of methods

Utility class for JavaScript behaviors
Package: Joomla\CMS\HTML\Helpers
Copyright: (C) 2007 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/HTML/Helpers/Behavior.php
Project: Joomla

Method Summary

public static void
()

Method to load core.js into the document head.
Returns
  • void
Since
  • 3.3
Deprecated
  • 5.0
Show source code of this method: core Source Code

public static void
()

Add unobtrusive JavaScript support for form validation.
Returns
  • void
Since
  • 3.4
Deprecated
  • 5.0
Show source code of this method: formvalidator Source Code

public static void
()

Add unobtrusive JavaScript support for a combobox effect.
Returns
  • void
Since
  • 1.5
Deprecated
  • 5.0
Show source code of this method: combobox Source Code

public static void
(mixed $id = 'adminForm')

JavaScript behavior to allow shift select in grids
Parameters
  • string $id The id of the form for which a multiselect behaviour is to be applied.
Returns
  • void
Since
  • 1.7
Deprecated
  • 5.0
Show source code of this method: multiselect Source Code

public static void
()

Keep session alive, for example, while editing or creating an article.
Returns
  • void
Since
  • 1.5
Deprecated
  • 5.0
Show source code of this method: keepalive Source Code

public static void
(array $terms, mixed $start = 'highlighter-start', mixed $end = 'highlighter-end', mixed $className = 'highlight', mixed $tag = 'span')

Highlight some words via Javascript.
Parameters
  • 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.
Returns
  • void
Since
  • 2.5
Deprecated
  • 5.0
Show source code of this method: highlighter Source Code

public static void
(mixed $polyfillTypes = null, mixed $conditionalBrowser = null)

Add javascript polyfills.
Parameters
  • string|array $polyfillTypes The polyfill type(s). Examples: event, array('event', 'classlist').
  • string $conditionalBrowser An IE conditional expression. Example: lt IE 9 (lower than IE 9).
Returns
  • void
Since
  • 3.7.0
Show source code of this method: polyfill Source Code

protected static string
()

Internal method to translate the JavaScript Calendar
Returns
  • string JavaScript that translates the object
Since
  • 1.5
Show source code of this method: calendartranslation Source Code

Properties Summary

protected static array
$loaded
Array containing information for loaded files
Since
  • 2.5

Tags Summary

Since
1.5