[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)
created MR https://github.com/artf/grapesjs/pull/1603
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
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.
Issue #1210
[Question] Replace Devices icon ASP.net / Javascript
Bonjour, I want replace icon for selected devices like in preset-webpage but i don't understand why this code doesn't work and nothing appe...
Issue #827
[QUESTION] Change location of command panel
Amazing library, thank you!! I have two questions I'm hoping you can help with.How can I move the command panel from the top to the left as...
Issue #1787
[Question] Change HTML of Panel buttons from span to button
I have created some Panels and would like to change the element of panel buttons from span to button as its more appropriate and looks bett...
Issue #1674
Render block after trait action .
I have created new block called sidebar that have dynamic updates by trait component ,trait contain checkboxes to dynamic change content by...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.