Skip to content

How to remove a panel programmatically ? #292

Answered by mathuo
RiadhAdrani asked this question in Q&A
Discussion options

You must be logged in to vote

There actually isn't a removePanel method directly exposed currently so to progmatically remove you would need to do this via the panels api methods. For example you can close a panel by calling .close().

const panel = api.getPanel(my_panel_id);
panel.api.close();

I will add a task to expose a removePanel-like method to the primary api though as I can see how this would be useful.

Let me know if this helps and if you have any other questions.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RiadhAdrani
Comment options

@mathuo
Comment options

Answer selected by RiadhAdrani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants