Issue #1723💬 AnsweredOpened January 10, 2019by Ramkumar-Murugesan0 reactions

Replacing particular text in dropped component

Quick answerby artf

Please check the Component API

Read full answer below ↓

Question

Hi, I get the value from custom traits from what I entered but I don't know how to change the particular value in dropped component and render into the canvas my screenshot what I really want is to replace the regular text value to which I have entered in custom traits u can see in my screenshot my custom traits is here I try to get dropped element but it shows undefined. Can u please help me Thanks.

Answers (2)

artfJanuary 14, 2019
firstButton() {
	const component = this.find('ion-segment-button')[0];
	// eg. update inner component contents
	component.components('<div>New content</div>')
},

Please check the Component API

lock[bot]January 15, 2020

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.