Issue #1602💬 AnsweredOpened November 22, 2018by arthuralmeidap1 reactions

Panel visibility

Quick answerby arthuralmeidap1

created MR https://github.com/artf/grapesjs/pull/1603

Read full answer below ↓

Question

Hey @artf ,

How have you been? Quick question: a Panel has a property called visible. I'm trying to set it to false but nothing happens. I'm getting the panel after the GrapesJS is rendered like editor.Panels.getPanel('myId').set('visible', false); I was digging into the source code and I didn't find any use to the visible property for the Panel model. Am I missing something? Thanks in advance

Answers (3)

arthuralmeidapNovember 22, 2018

Oh, I didn't say but I want to hide/show the panel according to some condition.

I know how I could get the panel html element itself and change the display but I was wondering about the visible property

artfNovember 23, 2018

I was digging into the source code and I didn't find any use to the visible property for the Panel model.

Yeap, you're right 😬 I'd expect to see a listener in PanelView Would you like to create a PR for such a case?

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.