load a javascript library that applies only for one widget

3829
2
Jump to solution
05-17-2016 05:20 PM
Alexwang
Occasional Contributor II

I can follow the steps to load a javascript library shared for more than one widget from here - Use other libraries—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers . But I couldn't make it work for loading a library that applies only for one widget. can anybody share details of how to achieve this? Appreciate it!

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Alex,

  I is as simple as adding the folder or single js file from the library to the widget folder structure and adding the right require for it in the Widget.js file. Can you provide some details on what you have tried that is not working?

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Alex,

  I is as simple as adding the folder or single js file from the library to the widget folder structure and adding the right require for it in the Widget.js file. Can you provide some details on what you have tried that is not working?

Alexwang
Occasional Contributor II

Thanks Robert. I have made it work.

0 Kudos