Draggable
configurationIndicates whether the ListBox items can be dragged and dropped.
- The draggable option allows you to drag and drop items within a single or across multiple ListBoxes. If your project requires the multiple-widget scenario, set the
dropSourcesoption on the target widgets. If your project requires the single-widget scenario, thedropSourcesoption is not necessary.- If you set the
draggableoption totrue, you also have to setselectable.
draggable
Boolean|ObjectDefault: false
draggable.enabled
BooleanIndicates whether dragging is enabled.
Default: true
draggable.hint
Function|String|jQueryProvides an option to customize the draggable item hint. If a function is supplied, it receives a single argument - the jQuery object of the draggable element. If a hint is not provided, the ListBox clones the dragged item and uses it as a hint.
To avoid styling issues, note that the
hintelement is appended to the<body>tag.
draggable.placeholder
Function|String|jQueryProvides an option to customize the item placeholder of the ListBox. If a function is supplied, it receives a single argument - the jQuery object of the draggable element. If a placeholder is not provided, the ListBox clones the dragged item, removes its id attribute, sets its visibility to hidden, and uses it as a placeholder.
The
placeholderelement is appended to the container of the ListBox.