Hi, is it possible to use a callback node with arguments?
I mean something ike this:
<Callback Handler="{SomeFunction}" Argument:"x"/>
Thanks!
Hi, is it possible to use a callback node with arguments?
I mean something ike this:
<Callback Handler="{SomeFunction}" Argument:"x"/>
Thanks!
No, but SomeFunction automatically gets an argument where .data is the data context from the node the callback sits on (from databinding)
function SomeFunction(e)
{
e.data // <-- this is the data context :)
}
Thank you Anders, that’s even better for my use case!