How to remove a panel programmatically ? #292
Answered
by
mathuo
RiadhAdrani
asked this question in
Q&A
-
I want to remove a panel depending on an external user event, I searched the docs but I didn't find anything, any suggestions ? |
Beta Was this translation helpful? Give feedback.
Answered by
mathuo
Jul 10, 2023
Replies: 1 comment 2 replies
-
There actually isn't a const panel = api.getPanel(my_panel_id);
panel.api.close(); I will add a task to expose a Let me know if this helps and if you have any other questions. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
RiadhAdrani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There actually isn't a
removePanel
method directly exposed currently so to progmatically remove you would need to do this via the panelsapi
methods. For example you can close a panel by calling.close()
.I will add a task to expose a
removePanel
-like method to the primaryapi
though as I can see how this would be useful.Let me know if this helps and if you have any other questions.