Merge pull request #328 from mathuo/321-add-hideclose-to-dockviewdefaulttab-component

docs: add note
This commit is contained in:
mathuo 2023-08-29 20:10:01 +01:00 committed by GitHub
commit 493f843987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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';