Issue #918💬 AnsweredOpened March 1, 2018by lorrandavid0 reactions

How to change trait label?

Quick answerby artf

Currently, to change the trait's label you have to do it on the component level

Read full answer below ↓

Question

After searching for a while, I couldn't find how to change only the trait label without overwriting everything.

This is my attempt that didn't work out

traitManager: {
	appendTo: '#traits',
	defaults: [
		{ name: 'title', label: 'Test' }
	]
},

I saw people overwriting the entire module, is that the way it should be done? trait

Answers (2)

artfMarch 4, 2018

Currently, to change the trait's label you have to do it on the component level

// Component model
defaults: {
	...,
	traits: [...]
}
lock[bot]September 18, 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.