Am new to WAB customization.
When I click the onscreen widget, only one remains open. I would one of them to remain open all the time. Any idea how it can be done?
When using the launchpad theme if you add widgets to the AnchorBar controller instead of the on screen widget place holders then you can have as many open as you wish.
Short of using those two themes than you would have to modify the OnScreenWidgetIcon.js to comment out the code that closes all other open on screen widget:
switchToOpen<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>state <SPAN class="operator token">=</SPAN> <SPAN class="string token">'opened'</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="comment token">// this.panelManager.closeAllPanelsInGroup(this.widgetConfig.gid);</SPAN> <SPAN class="comment token">// array.forEach(this.widgetManager.getOnScreenOffPanelWidgets(), function(widget){</SPAN> <SPAN class="comment token">// if(widget.closeable){</SPAN> <SPAN class="comment token">// this.widgetManager.closeWidget(widget);</SPAN> <SPAN class="comment token">// }</SPAN> <SPAN class="comment token">// }, this);</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
GisGK Auckland is it possible to make the widget unable to be minimized or closed? we have a piece of text that we want onscreen no matter what. is that possible?
Guess this is what I was after
Thanks for the reply
The Launchpad theme is the one currently used and from current indications people are not flexible to move to another theme.
I agree if the widget is put in the Box controller or the widget pool (as referred in the config), they remain open. This widget remain outside the Box Controller . These widgets behave like the minimize, maximize & home button in the left top.
One can put a basemap or About widget outside Box Controller and check the behavior. Only one is allowed open at one time. I can share a video if I am still not clear
If you use the launchpad theme or box theme then you can have multiple widgets open at once.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.