Select to view content in your preferred language

Custom Widget Tutorial - Question about folders

5136
2
Jump to solution
12-22-2014 02:56 PM
BrianF_
Deactivated User

Hi,

I recently downloaded the developer edition of the ESRI Web AppBuilder here and I am trying to build a new widget using the sample here.

I can get through the first three steps but on Step 4 it tells me to "Open the config-demo.json file in the stemapp/sample-configs folder. Find widgetPool->widgets, and add a new widget element like this. Save the file." 

These files don't exist in my download, I don't have any file named config-demo.json, and I don't have a sample-configs demo folder. 

Am I looking at the wrong thing or am I supposed to create these folders?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
TimWitt2
MVP Alum

Hey Brian,

Just copy your "Demo" widget folder to client/stemapp/widgets folder.

Then go to client/stemapp and open the config.json file and at the end where it says "widgets": [{

add the following to the list:

"label": "Demo",

"uri": "widgets/Demo/Widget"

Now  the demo widget should show up when you create a new app.

Tim

View solution in original post

2 Replies
TimWitt2
MVP Alum

Hey Brian,

Just copy your "Demo" widget folder to client/stemapp/widgets folder.

Then go to client/stemapp and open the config.json file and at the end where it says "widgets": [{

add the following to the list:

"label": "Demo",

"uri": "widgets/Demo/Widget"

Now  the demo widget should show up when you create a new app.

Tim

BrianF_
Deactivated User

Hey Tim,

Thanks for your help!  That made it work!

0 Kudos