Is there some trick to exposing events in kendo-style plugins so that I can bind them using the declarative style? Currently I am just establishing the events on my plugins using the reserved "events" array field, using strings for their names. I thought that was enough, but when I attempt to bind them with the declarative style it keeps saying "Uncaught TypeError: Cannot read property 'change' of undefined". Any input on this?
Code examples:
From plugin:
events: [
"error",
"change"
],
From declaration:
<div data-role="pluginname" data-bind="events: { change: testChange }"></div>
Where the plugin itself has been tested and is found by the bind, and the function "testChange" exists in the viewModel.
Code examples:
From plugin:
events: [
"error",
"change"
],
From declaration:
<div data-role="pluginname" data-bind="events: { change: testChange }"></div>
Where the plugin itself has been tested and is found by the bind, and the function "testChange" exists in the viewModel.