Skip to main content

Move Panel

This section describes how you can move a panel to another panel or group.

Methods

moveTo
moveTo(options: {
group: DockviewGroupPanel,
index?: number,
position?: 'right' | 'bottom' | 'top' | 'left' | 'center'
}): void

Move a Panel

You can move a panel through the Panel API and you can find out how to move a Group here.

panel.api.moveTo({ group, position, index });

An equivalent method for moving groups is avaliable on the group api.

const group = panel.api.group;
group.api.moveTo({ group, position });