OTRS API Reference JavaScript

Namespace: Core.Form.ErrorTooltips

Core.Form. ErrorTooltips

This namespace contains the Tooltip initialization functions.
Author:
  • OTRS AG
Source:

Methods

(static) HideTooltip()

This function hides the tooltip for an element.
Source:

(static) InitRTETooltip($Element, Message)

This function initializes the necessary stuff for a tooltip in a rich text editor.
Parameters:
Name Type Description
$Element jQueryObject The RTE element for whom the tooltips are initialized.
Message String The string content that will be show in tooltip.
Source:

(static) InitTooltip($Element, TooltipContent)

This function initializes the tooltips on an input field.
Parameters:
Name Type Description
$Element jQueryObject The elements (within a jQuery object) for whom the tooltips are initialized.
TooltipContent String Content of the tooltip, may contain HTML.
Source:

(static) RemoveRTETooltip($Element)

This function removes the tooltip in a rich text editor.
Parameters:
Name Type Description
$Element jQueryObject The RTE element for whom the tooltips are removed.
Source:

(static) RemoveTooltip($Element)

This function removes the tooltip from an input field.
Parameters:
Name Type Description
$Element jQueryObject The elements (within a jQuery object) for whom the tooltips are removed.
Source:

(static) ShowTooltip($Element, TooltipContent, TooltipPosition)

This function shows the tooltip for an element with a certain content.
Parameters:
Name Type Description
$Element jQueryObject jquery object.
TooltipContent String The string content that will be show in tooltip.
TooltipPosition String Vertical position of the tooltip: 'TongueTop' or 'TongueBottom'.
Source: