I am curious to see if it is possible to add multiple custom widget spots to the 'Launchpad theme' in WAB Dev. Currently I am working with the layout and have maxed out the 3 custom widget slots that it allows for. (But would like to have at least two more available). Is this at all a possibility? Or am I stuck with the format given?
Thanks
Matthew,
No that is the wrong file. You need to work with the main config.json for your app.
[install dir]\server\apps\[app#]\config.json not the config.json that is inside the themes\...\layout folder. As to where in that file, you have to find the location of the other "placeholderIndex" properties. So if you have some widget in all three available on screen widget placeholders already it will look different. All the on screen widget placeholders will have "placeholderIndex" : 1. after the last one you add your new blank spots like i have in the other thread.
Adjusting the "right" or "left", "top" and "placeholderIndex" values as needed.
<SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"position"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"right"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">305</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"top"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">20</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"relativeTo"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"map"</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"placeholderIndex"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">6</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"position"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"right"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">355</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"top"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">20</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"relativeTo"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"map"</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"placeholderIndex"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">7</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></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
See this thread where I answer that question.
https://community.esri.com/thread/185188-on-screen-widgets
So I found the layout config.js for the Launchpad theme, but I'm still wondering what syntax I enter, and where. (Do I put it below that last ph_13 pictured below)?
Ah sounds good,
I think I understand now--the only issue I'm having is that the syntax indentation format is off, does this mean I need to open the 'config.json in Notepad++ or something?
Robert,
I got it squared away and inserted. And it worked! Pretty cool for a novice like myself to see the process work. Now I just had to edit the 'left/right' distances to get it to line up. But again, thank you--it took a little deciphering of the syntax and order, but I'm starting to get the hang of it a bit. (I'll mark your last explanation as answered!)
Best
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.