Community
Hi,
I need detect when the user activate a widget, exist an option to do this? like
widget.on("click", function(){
alert('Hi....');
});
Thanks,
Solved! Go to Solution.
Solved by jackie.ng. Go to Solution.
Widgets only expose an event that is raised when it is enabled/disabled.
But, any widget that has a toolbar/menu representation also has a uiObj property that represents the UI button/menuitem the widget is attached to.
So this should work:
widget.uiObj.addEvent("click", function() { alert("You clicked me"); });
- Jackie