Class SortableListControl extends BaseControl

A control for dialogs with a list that can be sorted with drag and drop

Source : file controls/sortableListControl/SortableListControl.js at line 38

Constructor

new SortableListControl ( dropFunction, contextMenuClass, headingText )

The constructor

Source : file controls/sortableListControl/SortableListControl.js at line 82

Parameters

Name Type Description
dropFunction Function

The function to call when an item is droped

contextMenuClass Class

The context menu class to use

headingText String

The text to add in the header

Public methods

updateContent ( listItemsHTMLElements )

Update the items in the control

Source : file controls/sortableListControl/SortableListControl.js at line 112

Parameters

Name Type Description
listItemsHTMLElements Array of HTMLElement

An array with HTMLElements to use as items

Private properties

#contextMenuListItemEL : ContextMenuListItemEL

The context menu on item event listener

Source : file controls/sortableListControl/SortableListControl.js at line 59

#dragStartListItemEL : DragStartListItemEL

The item drag start event listener

Source : file controls/sortableListControl/SortableListControl.js at line 45

#dropListItemEL : DropListItemEL

The item drop event listener

Source : file controls/sortableListControl/SortableListControl.js at line 52

#sortableListHTMLElement : HTMLElement

The HTMLElement container for the list

Source : file controls/sortableListControl/SortableListControl.js at line 73

#touchListItemEL : TouchListItemEL

The touch item event listener

Source : file controls/sortableListControl/SortableListControl.js at line 66