-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
553 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: 'External Dnd Events' | ||
sidebar_position: 3 | ||
--- | ||
|
||
External Dnd events can be intercepted through a number of utilities. | ||
|
||
import { DocRef } from '@site/src/components/ui/reference/docRef'; | ||
import LiveExample from '@site/src/components/ui/exampleFrame'; | ||
|
||
<DocRef declaration="DockviewApi" | ||
methods={['onDidDrop']} | ||
/> | ||
|
||
|
||
<FrameworkSpecific framework='React'> | ||
<DocRef declaration="IDockviewReactProps" methods={['showDndOverlay']} /> | ||
</FrameworkSpecific> | ||
|
||
<FrameworkSpecific framework='JavaScript'> | ||
<DocRef declaration="DockviewComponentOptions" | ||
methods={['showDndOverlay']} | ||
/> | ||
</FrameworkSpecific> | ||
|
||
|
||
## Intercepting Drag Events | ||
|
||
You can intercept drag events to attach your own metadata using the `onWillDragPanel` and `onWillDragGroup` api methods. | ||
|
||
<LiveExample framework='react' id="dockview/dnd-external" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../docs/sandboxes/dnd-dockview/package.json → .../react/dockview/dnd-external/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "dnd-dockview", | ||
"name": "dockview.dnd-external", | ||
"description": "", | ||
"keywords": [ | ||
"dockview" | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.