docs: add note

This commit is contained in:
mathuo 2023-08-27 21:59:53 +01:00
parent 5ac2a9ffdb
commit 2ce175dbf3
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -632,6 +632,8 @@ A default implementation of `DockviewDefaultTab` is provided should you only wis
changes and events that do not alter the default behaviour, for example to add a custom context menu event
handler.
The `DockviewDefaulTab` component accepts a `hideClose` prop if you wish only to hide the close button.
```tsx title="Attaching a custom context menu event handlers to a custom header"
import { IDockviewPanelHeaderProps, DockviewDefaultTab } from 'dockview';