mirror of
https://github.com/mathuo/dockview
synced 2025-09-09 02:46:47 +00:00
chore: docs
This commit is contained in:
parent
e34fb43913
commit
090f2d26f8
@ -24,12 +24,12 @@ The dock makes heavy use of drag and drop functionalities.
|
||||
|
||||
# Drag And Drop
|
||||
|
||||
You can override the conditions of the far edge overlays through the `rootOverlayModel` prop.
|
||||
You can override the conditions of the far edge overlays through the `dndEdges` prop.
|
||||
|
||||
```tsx
|
||||
<DockviewReact
|
||||
{...props}
|
||||
rootOverlayModel={{
|
||||
dndEdges={{
|
||||
size: { value: 100, type: 'pixels' },
|
||||
activationSize: { value: 5, type: 'percentage' },
|
||||
}}
|
||||
|
@ -180,7 +180,7 @@ const DndDockview = (props: { renderVisibleOnly: boolean; theme?: string }) => {
|
||||
onReady={onReady}
|
||||
className={`${props.theme || 'dockview-theme-abyss'}`}
|
||||
onDidDrop={onDidDrop}
|
||||
rootOverlayModel={{
|
||||
dndEdges={{
|
||||
size: { value: 100, type: 'pixels' },
|
||||
activationSize: { value: 5, type: 'percentage' },
|
||||
}}
|
||||
|
@ -179,7 +179,7 @@ const DndDockview = (props: { renderVisibleOnly: boolean; theme?: string }) => {
|
||||
onReady={onReady}
|
||||
className={`${props.theme || 'dockview-theme-abyss'}`}
|
||||
onDidDrop={onDidDrop}
|
||||
rootOverlayModel={{
|
||||
dndEdges={{
|
||||
size: { value: 100, type: 'pixels' },
|
||||
activationSize: { value: 5, type: 'percentage' },
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user