OTRS API Reference JavaScript

Namespace: Core.UI.TreeSelection

Core.UI. TreeSelection

Tree Selection for Queue, Service, etc. with JSTree.
Author:
  • OTRS AG
Source:

Methods

(static) BuildElementsArray($Element, Sort) → {Object}

This function receives a select element which was built with TreeView => 1 (= intended elements) and builds a javascript object from it which contains all the elements and their children.
Parameters:
Name Type Description
$Element jQueryObject The select element which contains the data.
Sort Boolean Whether to sort the elements alphabetically (optional, default: true)
Source:
Returns:
Returns an object which is suitable for passing to JSTree in order to build a tree selection.
Type
Object

(static) Init()

Initializes the namespace.
Source:

(static) InitDynamicFieldTreeViewRestore()

Initially display dynamic fields with TreeMode = 1 correctly.
Source:

(static) InitTreeSelection()

To bind click event no tree selection icons next to select boxes.
Source:

(static) RestoreDynamicFieldTreeView($FieldObj, Data, CheckClass, AJAXUpdate) → {Boolean}

Restores tree view (intended values) for dynamic fields.
Parameters:
Name Type Description
$FieldObj jQueryObject
Data Array
CheckClass Boolean
AJAXUpdate Number
Source:
Returns:
False on error.
Type
Boolean

(static) ShowTreeSelection($TriggerObj) → {Boolean}

Open the tree view selection dialog.
Parameters:
Name Type Description
$TriggerObj jQueryObject Object for which the event was triggered.
Source:
Returns:
Returns false on error.
Type
Boolean