POST
|
I'm not sure I understand how render() method works exactly and how to add & render dynamic content to widget's HTML/template... 1) First of all - for some reason each click on the map I loaded - triggers the render() method about 7 times. Any idea why? what's the lifecycle of this method? (I've attached a GIF showing that each click on map is calling the redner() method 7 times). 2) Regarding adding dynamic HTML - let's say that I have an initial HTML I render thru render() method, and I want to add additional "h1" html element on a button click. What is the right way to do it? I just want to append HTML elements to the initial render. In javascript API version 3 - we would just access the DOM using dojo and add whatever we want. How is it done in this latest version 4? Thanks.
... View more
06-10-2020
05:15 AM
|
1
|
2
|
1143
|
POST
|
Hello all, I went thru the documentation but I'm pretty new to ESRI and WebApp Builder so not sure if what I'm asking is possible... Lets say I've created a custom widget using the WebApp Builder (my own template and functionality in its "widget.js" file and so on) - is it possible to wrap it up as an API and consume/require it like esri's other widgets (like "esri/widgets/Expand")? require([
"esri/WebScene",
"esri/views/SceneView",
"esri/widgets/Expand"
], function(
WebScene,
SceneView,
Expand
) { My goal is to create a custom widget using WebApp Builder - but later on to use this widget thru API and not the builder itself. Is that possible? Thanks.
... View more
06-02-2020
07:54 AM
|
0
|
2
|
646
|
Title | Kudos | Posted |
---|---|---|
1 | 06-10-2020 05:15 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|