Module Apotomo::EventMethods
In: lib/apotomo/widget/event_methods.rb

Event-related methods and onfire bridge for Widget.

Methods

Classes and Modules

Module Apotomo::EventMethods::ClassMethods

Attributes

page_updates  [W] 

Public Instance methods

Get all handlers from self for the passed event (overriding Onfire#local_event_handlers).

Same as responds_to_event but executed on the widget instance, only.

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

Protected Instance methods

[Validate]