Implement Command which triggers an action

Idea created by jvseagle-co-nz-esridist Employee on Aug 3, 2016



    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".