Select to view content in your preferred language

Turning Button Widget on/off On-Click

391
0
09-30-2022 06:19 AM
PareshPatel2
Occasional Contributor

We needed a functionality to show user that particular button is turned on or off(on-click). In web app builder (as shown in attached images)we did this by removing/adding html class something like this,

html.removeClass(this.domNode, 'jimu-widget-FastSearchbutton1');
html.addClass(this.domNode, 'jimu-widget-FastSearchbutton');

  
Anyone knows whether this functionality is possible in experience builder from code in runtime? If so, documentation or sample code for the same would be really helpful.

Note: Using ArcGIS Experience builder  developers edition 1.9 for development.

0 Kudos
0 Replies