Issue #1602Opened November 22, 2018by arthuralmeidap1 reactions

[QUESTIONS] - Panel visibility

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, 20180 reactions

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, 20180 reactions

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.