I like to show the widgets based on user login. to hide few widgets based on user login.
Go to Solution.
See this thread (read all of the posts) for some help:
View solution in original post
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.