I like to show the widgets based on user login. to hide few widgets based on user login.
See this thread (read all of the posts) for some help:
How can I toggle the visibility of a widget?
Where I can write this code, I mean on which js file. I need to validate this after opening the application. Is there is any common file available in WAB to write custom code that will execute after/before loading all widgets.
If you are dealing with the map then jimu/MapManager.js If widget the jimu/WidgetMnager.js.
Retrieving data ...