Select to view content in your preferred language

Changing custom widget icon and/or tooltip

09-18-2023 07:58 AM
Labels (1)
New Contributor III

I am looking to build a custom widget that is intended to be housed in a Widget Controller, but I want the Widgets Icon and/or tooltip to be modified at runtime. Is this possible?

As an extension to this question, is it possible to add a Badge component to the widget icon in the widget controller?

Any example code demonstrating any of these capabilities would be appreciated.

0 Kudos
1 Reply
MVP Regular Contributor

My recommendation for doing this would be to not use the Widget Controller, but to make your own. Have the entry point for your widget be a button that triggers a modal or popper when it is clicked. This would give you direct control over the appearance of your button.

GIS Developer
City of Arlington, Texas
0 Kudos