OTRS API Reference JavaScript

Namespace: Core.UI.Accordion

Core.UI. Accordion

This namespace contains the Accordion code.
Author:
  • OTRS AG
Source:

Members

(static) ContentSelector :String

The selector for the content, which is shown or hidden.
Type:
  • String
Source:

Methods

(static) AnimationIsRunning() → {Boolean}

This function checks, if an accordion animation is currently running.
Source:
Returns:
True, if animation is still running, false otherwise.
Type
Boolean

(static) Init($Element, LinkSelector, ContentSelector) → {Boolean}

This function initializes the accordion effect on the specified list.
Parameters:
Name Type Description
$Element jQueryObject The parent list element (ul) for the accordion.
LinkSelector String The selector for the link, on which an element is opened/closed.
ContentSelector String The selector for the content, which is shown or hidden.
Source:
Returns:
Returns false on error.
Type
Boolean

(static) OpenElement($ListElement, WithAnimation) → {Boolean}

Open a single accordion element.
Parameters:
Name Type Description
$ListElement jQueryObject
WithAnimation Boolean
Source:
Returns:
Returns false on error.
Type
Boolean

(static) StartAnimation()

This function indicates that an accordion animation is now running.
Source:

(static) StopAnimation()

This function indicates that all accordion animations have stopped now.
Source: