Adding properties to a custom event?
I'm new to the SDK.
I'm trying to have a plugin dispatch a custom event to a Javascript event handler with a property that is an object in the scripting DOM, like a Story.
I am a bit confused how to get there. The Custom Script Events section of the Programming Guide cites the example of a mutation event, though I can't find any example in the SDK where this actually used. I've defined the custom event in the .fr file, but I don't see how to attach the iTextModel to that event, and I imagine I need to create a proxy object for it, but I'm also unclear how to do that.
I can successfully call target->DispatchScriptEvent with my event and a callback handler, and my callback handler is properly invoked when the event fires. But how do I add a property to the event IScriptEvent *e which the callback is called with?
I spent a while barking up the wrong tree because the Programming Guide talks about optional parameters to Events and gives examples that don't work, but it really means Methods, I guess that's dated information from older version of the SDK.
Any suggestions? Thanks!
