Hi,
Sorry this is in English
How do I detect when a widget has changed? I want to change the color of the select background. I can do
$("#myselect > select").on("change", function().......
but that only works when I change the value on screen. If it changes via a timer say then the state is update but the onchange is no triggered. I did try
$(document).on("updateDone", function()......
but that doesn't seem to run for me. Or at least not at each update.
I did think about using class changer widget but I could not think of way of taking the class down to select background.
As far as I know, I would say, the widget has to emit such a change by its own.
The Select Widget must be extended
Add elem.trigger('changedItem'); into setCurrentItem function.
And then you could subscribe this new event.