A control for dialogs with a list that can be sorted with drag and drop
The constructor
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 |
Update the items in the control
Name | Type | Description |
---|---|---|
listItemsHTMLElements | Array of HTMLElement | An array with HTMLElements to use as items |
The context menu on item event listener
The item drag start event listener
The item drop event listener
The HTMLElement container for the list
The touch item event listener