Issue #1460💬 AnsweredOpened September 26, 2018by YashPrince1 reactions

Hide Trait Element

Quick answerby artf1

You can pass something like this attributes: {style: 'display: none'}

Read full answer below ↓

Question

How can I hide a trait element while creating a trait for the component.

 traits: [ {
                            label: "XYZ",
                            name: "xyz",
                            defaults:0,
                            changeProp: 1,
                            type: 'text',
                            min:0
     }]

Is there any way like display:none or hidden:1. How can I show or hide any trait, Any help would be appreciated.

Answers (2)

artfSeptember 29, 2018

You can pass something like this attributes: {style: 'display: none'}

lock[bot]September 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.