dockview
dockview copied to clipboard
Actions in paneview
I want to display a dynamic list of items in a popup located in the header of a Paneview
component. My goal is to capture an event when the user clicks on one of the items in this list.
In the demo-dockview
demo, the DockviewReact
component accepts the rightHeaderActionsComponent
parameter. Would it be possible to have similar functionality for actions in Paneview
component headers?
Describe alternatives you've considered
I tried using an event
in a panel's settings to retrieve events, however, every time I update my item list I am forced to update all panels.
Is it something like the custom paneview headers that you require, or something with more functionality? https://dockview.dev/docs/next/components/paneview#custom-header
I've tried with little time to do an example here: https://codesandbox.io/s/simple-paneview-forked-qrklqh?file=/src/app.tsx
It works, but I have my doubts about the performance of passing a component to updateParameters.