AnsweredAssumed Answered

What's the recommended way to modify 4.x Widget UI after creation?

Question asked by rhughes522 on Oct 9, 2018
Latest reply on Oct 13, 2018 by rhughes522



I'm learning the new 4.x API and have been pretty successful implementing the Accessor based ViewModel per the recommendations on the available resources online.  


When needing to modify the Widget UI after initial rendering, is there a recommended approach?  Currently I am comfortable using domConstruct as was the typical technique in the 3.x api.  Is there a typescript 4.x equivalent to using the dojo dom tools?  


When developing in 3.x I typically prefer creating dom nodes in javascript rather than the html widget template.  In the 4.x api, when rendering jsx, is there a recommended way to reference domNodes (ie. this.myDomNode using dojo-data-attach-point) so that the UI can be modified?


The references for jsx available online haven't completely sunk in with me yet so I am hoping the geoNet community has some insight or direction for me to look in.