Change value of attribute that is passed through traits
Question
Hello @artf
Is there any methods to manipulate the input value of an attribute that is passed through traits.
Like I passed value Hello in trails title and it is appended to HTML attribute like title="hello" but I want to change the value after like I write Hello in traits but it is appended as StringHelloString and in HTML attribute it is visible as title="StringHelloString".
Answers (3)
Hi Harsh,
Is there any methods to manipulate the input value of an attribute that is passed through traits.
Nope, probably the best you can do is creating a custom Trait and override onValueChange but take care also on how you will retrieve the value
Thanks for the reply but as I told you (#647) that custom traits value is not getting in HTML code
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.
Issue #1762
image not change while we fetch html using editor.getHtml()
Hello @artf I am using grapes.js for my website-builder tool into my website. While i double click on any image the asset-manager will open...
Issue #544
Add select with optgroup
Hello @artf I have recently started using grapeJs and found it awesome. Can you please help me on How can I add dropdown(select) with optgr...
Issue #1106
traits setting not work after reload
Hello @artf previous issue Yes, you're right traits are there but you didn't read the my issues those I'm facing. 1. when you drag and drop...
Issue #1817
Change HTML content while block is render in editor
Hello @artf I have one block into block manager like As per above script inside the block, i want to add dynamic HTML content while this bl...
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.