DragAndDrop component
Overview
The DragAndDrop component is an extension for Columns, allowing users to change columns position in the table.
Constructor: app/code/Magento/Ui/view/base/web/js/grid/dnd.js
Configuration options
Extends all UiCollection configuration.
DragAndDrop own configuration:
Option | Description | Type | Default |
---|---|---|---|
enabled |
Whether the component is allowed to change the position of columns. | Boolean | true |
fixedX |
Whether the column has a fixed positon on the X-axis. That is, whether it can be moved horizontally. | Boolean | false |
fixedY |
Whether the column has a fixed positon on the Y-axis. That is, whether it can be moved vertically. | Boolean | true |
noSelectClass |
CSS class applied to the table when one of its columns is being dragged. | String | _no-select |