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
Solved! Go to Solution.
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.
{
"position": {
"right": 305,
"top": 20,
"relativeTo": "map"
},
"placeholderIndex": 6
},
{
"position": {
"right": 355,
"top": 20,
"relativeTo": "map"
},
"placeholderIndex": 7
},
Matthew,
See this thread where I answer that question.
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)?
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.
{
"position": {
"right": 305,
"top": 20,
"relativeTo": "map"
},
"placeholderIndex": 6
},
{
"position": {
"right": 355,
"top": 20,
"relativeTo": "map"
},
"placeholderIndex": 7
},
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?
Thanks
Already downloaded Notepad++ and it alleviated my indentation issues!
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.
haha beat me to the punch on the 'answered comment'
Cheers
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