Hello. I've been trying to figure out how to launch a splash screen repeatably from other widgets or buttons. Splash screen being defined as either the splash widget or something else that is customizable with images + texts + "I agree" checkbox.
The client asked us to isolate some layers into a seperate table of contents/layer list widget. We did that and got that mostly working. But the client wants a disclaimer/splash screen to pop up when the button which launches that seperate list is clicked. Additionally they want the disclaimer/splash to launch when another custom reporting widget is launched.
So this splash screen a) is not supposed to launch at the start of the app like the default splash widget, b) has to launch when a button in the headercontroller is clicked which launches the TOC widget and c) when a custom 'button' we added to the TOC is clicked, which launches yet another widget.
I looked at the default Esri splash widget.js code to try and figure out what makes it tick and couldnt quite figure it out. I saw that theres .focus and .blur (commenting .blur out did nothing), and various places that check for if the requires checkbox setup has been toggled on, but I'm not sure what like, actually locks off the rest of the screen from working or requires the checkbox be hit.
So I don't really know how to proceed. Non Web-App-Builder javascript guides basically say just show a div over your screen and/or put the rest of your page in another div and hide it while the splash screen is up. I'm afraid trying that would break everything and am hesitant to try a non-WAB/non-Dojo solution if there is actually a WAB/Dojo solution out there.
While I wait and see if anyone here has suggestions I'm going to look into 'help dialogue' boxes because I recall making one of those in the past and those are kinda similar.