sps014/BlazorBindGen

Suggestion how to call "Bind" to a Function?

Closed this issue · 2 comments

instance.bind("ready", function () {
    instance.method1();
    instance.method2();
    instance.method3();
}

@sps014

Do you have suggestion how best to write a lamda statement,

Often the method call the first paramter a List e.g. List, the second parameter is a function(node) { that iteratively going through the node properties ).

void Callback(JObjPtr[] _)
{
_instance.CallVoid("method1");
_instance.CallVoid("method2");
//..
}
_instance.CallVoid("bind","ready",(JSCallBack)Callback);