OTRS API Reference JavaScript

Namespace: Core.UI.InputFields

Core.UI. InputFields

Unified input fields.
Author:
  • OTRS AG

Members

(static) Activate

Activate the feature on all applicable fields in supplied context.

(static) Deactivate

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

Methods

(static) Init()

This function initializes all input field types.

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

This function initializes select input fields, based on supplied CSS selector.
Parameters:
Name Type Description
$SelectFields jQueryObject Fields to initialize.
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.
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
Returns:
String with removed diacritic characters
Type
String