Issue #2333💬 AnsweredOpened October 16, 2019by Ramkumar-Murugesan1 reactions

Can't able to remove the added traits properties[QUESTION]

Quick answerby pouyamiralayi1

Hi there! provide an id for your trait and try again based on this: `this.removeTrait('trait-id');` cheers!

Read full answer below ↓

Question

Hi, I can able to add the traits properties dynamically by using the following code. but the following code to remove the type name is not working this.get('traits').remove('type'); my complete traits are can anyone please help me

Answers (2)

pouyamiralayiOctober 16, 2019

Hi there! provide an id for your trait and try again based on this: this.removeTrait('trait-id'); cheers!

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.