AnsweredAssumed Answered

are there better ways to call Js API modules in a Jquery Widget?

Question asked by hzhu on Jun 20, 2017
Latest reply on Jun 21, 2017 by hzhu

I am currently upgrade a jquery ui widget to use Js API 4.x. I was using Js API 3.x in my widget, since the 3.x support legacy code, i could call a module or class easily; for example, this.locationGraphic=new esri.Graphic(center, symbol, feature.attributes, infotemplate). The 4.x no longer support legacy code, l have to load those AMD module into the widget, which is not simple. I could pass those class or module parameters into my widget to avoid loading. But it is a long list. Is there any better ideas or simple ways to do it?(Any ideas are welcome:))

Outcomes