-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Floating panel event listeners #753
Comments
As long as that includes the top, right, bottom, and left data that would be great! Would that also fire when a panel/group is closed? |
In regards to the panel/group closing is there a reason why you couldn't use Also of of interest what is the reason you require the top, right, bottom, left data? Are you persisting your layout without using the built-in |
This does appear to do what I need, however the position value in the
Because once a panel is closed, it's gone. I need a reference to closed panels, so when I need to open it again, it can appear in the same spot it was in when it was closed. It would actually be a lot easier if you could define panels and then just toggle their visibility rather than removing/adding them completely. |
Is your feature request related to a problem? Please describe.
I'm trying to implement a UI using floating panels. One requirement is for the panels' positions to persist when the page is refreshed. Currently this is not possible because there are no event listeners available for when a floating panel is moved or closed.
Describe the solution you'd like
Expose event listeners for when a floating panel is moved or closed.
Describe alternatives you've considered
Currently I'm using the
SerializedDockview
to get panel position, and I've hidden the close button by using a custom tab component. I'm using external controls to add/remove panels, and before that occurs I store the panel's position in local storage. This works fine when hiding/showing the panels with my external controls, but moving a panel and then refreshing the page results in losing the latest position data.The text was updated successfully, but these errors were encountered: