mirror of
https://github.com/mathuo/dockview
synced 2025-05-01 17:18:27 +00:00
chore: docs
This commit is contained in:
parent
fb9c056ff6
commit
4ff77d4696
@ -4,6 +4,7 @@ import {
|
||||
DockviewReact,
|
||||
DockviewReadyEvent,
|
||||
IDockviewPanelProps,
|
||||
positionToDirection,
|
||||
} from 'dockview';
|
||||
import * as React from 'react';
|
||||
|
||||
@ -54,14 +55,12 @@ export const DndDockview = (props: { renderVisibleOnly: boolean }) => {
|
||||
};
|
||||
|
||||
const onDidDrop = (event: DockviewDropEvent) => {
|
||||
const { group } = event;
|
||||
|
||||
event.api.addPanel({
|
||||
id: 'test',
|
||||
component: 'default',
|
||||
position: {
|
||||
referencePanel: group.activePanel.id,
|
||||
direction: 'within',
|
||||
direction: positionToDirection(event.position),
|
||||
referenceGroup: event.group,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user