How to add a Web App Builder custom widget into JS webapp

579
3
09-05-2020 02:26 PM
DeepakBegrajka
New Contributor

Hello All,

I have created a custom widget in Webapp builder and now I want to add that widget into a web app I have created in Js 4.16 version using webmap ID. I have all the files related to the widget. 

Can someone guide me in the right direction?

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

You Can NOT use a WAB widget inside JS API 4.x. Several reasons 1. 2D widget are written for 3.x JS API 2. Widget have MANY dependencies on the jimu library that is a part of WAB.

DeepakBegrajka
New Contributor

Hey Robert, 

Thanks for the reply.

I have a follow-up question, do you have any suggestion or way to achieve my task? like any alternative approach? If in any way I can reuse some part of WAB widget into webapp in 4.x js or I have to recreate the whole logic in my webapp?

Thanks. 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

pretty much re-create the whole thing.

0 Kudos