dockview icon indicating copy to clipboard operation
dockview copied to clipboard

Actions in paneview

Open KyDenZ opened this issue 1 year ago • 2 comments

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.

KyDenZ avatar Sep 18 '23 19:09 KyDenZ

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

mathuo avatar Sep 24 '23 20:09 mathuo

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.

KyDenZ avatar Oct 09 '23 17:10 KyDenZ