Class: Browser::Event::UI

Inherits:
Browser::Event show all
Defined in:
opal/browser/event/ui.rb

Direct Known Subclasses

Composition, Focus, Keyboard, Mouse, Wheel

Defined Under Namespace

Classes: Definition

Instance Attribute Summary

Attributes inherited from Browser::Event

#callback, #on

Class Method Summary collapse

Methods inherited from Browser::Event

aliases, #arguments, #arguments=, class_for, create, handlers, handles, #initialize, #name, name_for, new, #off, #prevent, #prevented?, #stop, #stop!, #stopped?, #target

Constructor Details

This class inherits a constructor from Browser::Event

Class Method Details

.construct(name, desc) ⇒ Object


19
20
21
# File 'opal/browser/event/ui.rb', line 19

def self.construct(name, desc)
  `new UIEvent(#{name}, #{desc})`
end

.supported?Boolean

Returns:

  • (Boolean)

4
5
6
# File 'opal/browser/event/ui.rb', line 4

def self.supported?
  Browser.supports? 'Event.UI'
end