Reputation: 115
after connecting an event to a function, I would like a way to trigger the event manually (without the event actually happening). I'm looking for something like jQuery's .trigger() function.
Thanks
Upvotes: 3
Views: 1801
Reputation: 154876
Use the emit
method on the widget, e.g. button.emit("clicked")
.
Upvotes: 6