Skip to content
Snippets Groups Projects

Pass dragging information to slot for disabled fields

Merged Julian requested to merge disabled-fields-on-drag into main
5 files
+ 53
28
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 4
0
@@ -77,6 +77,10 @@ disabledFields: [
];
```
To highlight, which fields are disabled, the `disabledField` slot can be used. It receives the slot prop `isDraggedOver`,
which is a boolean indicating whether something is currently dragged over the grid. This can be used to only show the
disabled fields when something is dragging. An example for this can be found in Example number 7.
## Prevent items from being dragged
To disable dragging of a specific item, simply set the attribute `disabled` of the item to `true`.
Loading