Display dynamic text in a widget

424
2
02-04-2020 08:53 AM
AxelLévy
New Contributor III


Hello,

I don't see any information in the API to display dynamic text, except in the pop-ups.


I would like to display dynamic text, equivalent of the Attribution widget but which would show a map update date. Do you think this is possible? 

This update information would come from a feature layer date field or a hosted JSON file for example.

thanks!

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Axel,

  Just add a div to the views ui 

view.ui.add(myDiv, "top-right");

and then update the innerHTML of that div in your code.

0 Kudos
AxelLévy
New Contributor III

Thanks a lot Robert, i'll try

0 Kudos