OTRS API Reference JavaScript

Namespace: Core.UI.InputFields

Core.UI. InputFields

Unified input fields.
Author:
  • OTRS AG
Source:

Members

(static) Activate

Activate the feature on all applicable fields in supplied context.
Source:

(static) Deactivate

Deactivate the feature on all applicable fields in supplied context and restore original fields.
Source:

Methods

(static) Init()

This function initializes all input field types.
Source:

(static) InitSelect($SelectFields) → {Boolean}

This function initializes select input fields, based on supplied CSS selector.
Parameters:
Name Type Description
$SelectFields jQueryObject Fields to initialize.
Source:
Returns:
Returns true if successfull, false otherwise
Type
Boolean

(static) IsEnabled($Element) → {Boolean}

This function check if Input Field is initialized for the supplied element, and returns appropriate boolean value.
Parameters:
Name Type Description
$Element jQueryObject The jQuery object of the element that is being tested.
Source:
Returns:
True/false value depending whether the Input Field has been initialized.
Type
Boolean

(static) RemoveDiacritics(Str) → {String}

Remove all diacritic characters from supplied string (accent folding). Taken from https://gist.github.com/instanceofme/1731620
Parameters:
Name Type Description
Str String String from which to remove diacritic characters
Source:
Returns:
String with removed diacritic characters
Type
String