Pluggable widget manipulate dom element

1
Is there a way to manipulate document elements using pluggable widget – reactjs. Say I have button on the page in mendix studio, in widget I want to get that by Name and add an html attribute to it. Or if I have <i> span want to surround it with another span.  
asked
2 answers
1

Sure, you can. Be sure to use the Mendix Client API whenever you can when manipulating the DOM:

https://apidocs.mendix.com/8/client/module-mxui_dom.html

If you don't you use the client API but change the DOM with default JavaScript, you could encounter clean up issues of elements created out of the Client API not being cleaned up properly.

answered
0

Hi,

 

Not exactly what you asked for, but I like to use the javascript snippet to do something like that

https://appstore.home.mendix.com/link/app/43096/

 

 

answered