Class: Browser::Event::Clipboard
- Inherits:
-
Browser::Event
- Object
- Browser::Event
- Browser::Event::Clipboard
- Defined in:
- opal/browser/event/clipboard.rb
Defined Under Namespace
Classes: Definition
Instance Attribute Summary
Attributes inherited from Browser::Event
Class Method Summary collapse
Instance Method Summary collapse
-
#transfer ⇒ Object
Returns a DataTransfer related to this event.
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
permalink .construct(name, desc) ⇒ Object
[View source]
18 19 20 |
# File 'opal/browser/event/clipboard.rb', line 18 def self.construct(name, desc) `new ClipboardEvent(#{name}, #{desc})` end |
permalink .supported? ⇒ Boolean
8 9 10 |
# File 'opal/browser/event/clipboard.rb', line 8 def self.supported? Browser.supports? 'Event.Clipboard' end |
Instance Method Details
permalink #transfer ⇒ Object
Returns a DataTransfer related to this event
29 30 31 |
# File 'opal/browser/event/clipboard.rb', line 29 def transfer DataTransfer.new(`#@native.clipboardData`) end |