Skip to main content

Disable drag and drop

The disableDnd option switches Dockview's drag and drop off entirely, giving you a layout whose panels and groups cannot be rearranged by dragging. Reach for it when you want a fixed arrangement the user should not be able to change.

You may want to combine this with locked={true} to provide a locked grid with no drag and drop functionality. See Locked for more.

Building a tabview

Selectively restricting the default drag and drop behaviours turns a dock into a plain tabview: a single group of tabs with no rearranging. The example below shows the effect:

See also