I would like to add other js library in widget without changing in core WAB, I don't want to make changes in init.js or index.html, or main.js.
Is their a way we could directly add any library in widget ans use in it.
I see an option add other libraries to WAB widget but where to set the dependency? Use other libraries—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
Sumit,
That link specifies what you need to do:
So this means you just add the library files to the widgets folder structure and then add the require/define to your widgets require/define list.
Thanks Robert Scheitlin, GISP !
Is there an example on how do that? That instructions doesn't help if you don't know how to do it.
Juan,
I am not sure I make the instructions any simpler. What is it you don't understand.
I don't know what how put the library on the dependency array. I want add P5.js to add some graphics on my widget. I have it on the libs folder
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.