Module | Apotomo::EventMethods |
In: |
lib/apotomo/widget/event_methods.rb
|
page_updates | [W] |
Fire an event of type and let it bubble up. You may add arbitrary payload data to the event.
Example:
trigger(:dropped, :area => 59)
which can be queried in a triggered state.
def on_drop(event) if event[:area] == 59