Issue #1081💬 AnsweredOpened May 3, 2018by mmeeeooowww0 reactions

RemovePanel does not remove panels

Quick answerby FrciSmrci

Hey @mmeeeooowww , the panels should be removed as discussed in this issue. Have a great day.

Read full answer below ↓

Question

I'm trying to remove a panel. The function returns the panel the first time I run removePanel and then returns undefined if I run it again. It's worth noting that the panel is no longer returned when getting all panels, however it is still visible and functional. In my case I'm trying to remove the device selection buttons at the top left of the demo page but I did try to remove "options" and "views" as well with the same result. Expected behavior: Executing editor.Panels.removePanel('devices-c'); should remove the device selection panel. Current behavior: Executing editor.Panels.removePanel(...

Answers (3)

FrciSmrciMay 14, 2018

Hey @mmeeeooowww ,

the panels should be removed as discussed in this issue.

Have a great day.

mmeeeooowwwMay 14, 2018

Hi, @FrciSmrci I am using css to hide stuff at the moment. Am I misunderstanding the purpose of removePanel or am I using it incorrectly?

Thanks!

artfMay 18, 2018

I'll add a listener on this too

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.