Implement Command which triggers an action

289
0
08-03-2016 05:33 PM
Status: Open
JoseSousa
Esri Contributor

Hi,

It would be great to have the concept of a command within the ArcGIS Web AppBuilder. I would expect to:

- Develop a widget and set in the config file something like isCommand = true

- The OnScreenWidgetIcon.js file on the HeaderController would then recognize that I intend to run that control as a Command not as a traditional widget (with or without a panel).

- The OnScreenWidgetIcon.js file should simply create the icon and style and provide an onclick event listener that we can subscribe to from the WidgetBase class

In addition, the OnScreenWidgetIcon items should persist the class names with something more meaningful as defined in the config file. Not something like: class="jimu-widget-onscreen-icon" or id="dijit__WidgetBase_6".

Cheers,

Jose

Tags (1)