sps014 / BlazorBindGen

MIT License
16 stars 2 forks source link

How to handle newInstance()? #13

Closed GeorgeS2019 closed 2 years ago

GeorgeS2019 commented 2 years ago
//The bundle exposes a single jsSingleUI member on the window:

var jsUI= jsSingleUI.newInstance({
    container:someDOMElement
})

Is this a constructor or a case of CallRef?

sps014 commented 2 years ago

Isn't it simply a function call?

var param=new Window.Construct("Object"); //var param=new Object();
param.SetPropVal("container",HtmlElementReference); //container:someDOMElement
Window.PropRef("jsSingleUI").CallRef("newInstance",param);