OTRS API Reference JavaScript

Namespace: Core.UI.AllocationList

Core.UI. AllocationList

Support for Allocation Lists (sortable lists).
Author:
  • OTRS AG
Source:

Methods

(static) GetResult(ResultListSelector, DataAttribute) → {Array}

Gets the result of an allocation list.
Parameters:
Name Type Description
ResultListSelector String The selector for the list which will be evaluated for the result.
DataAttribute String The data attribute to determine the selection.
Source:
Returns:
An array of values defined by DataAttribute.
Type
Array

(static) Init(ListSelector, ConnectorSelector, ReceiveCallback, RemoveCallback, SortStopCallback)

Initializes an allocation list.
Parameters:
Name Type Description
ListSelector String The selector for the lists to initialize
ConnectorSelector String The selector for the connection (dnd), probably a class
ReceiveCallback function The Callback which is called if a list receives an element
RemoveCallback function The Callback which is called if an element is removed from a list
SortStopCallback function The Callback which is called if the sorting has stopped.
Source: