Class: Dommy::CompositionEvent
- Defined in:
- lib/dommy/event.rb
Overview
CompositionEvent — IME composition events (compositionstart /
compositionupdate / compositionend). data holds the composing text.
Constant Summary
Constants inherited from Event
Event::AT_TARGET, Event::BUBBLING_PHASE, Event::CAPTURING_PHASE, Event::NONE
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from Event
Instance Method Summary collapse
- #__js_get__(key) ⇒ Object
-
#initialize(type, init = nil) ⇒ CompositionEvent
constructor
A new instance of CompositionEvent.
Methods inherited from UIEvent
Methods inherited from Event
#__internal_clear_propagation_flags__, #__internal_mark_trusted__, #__internal_prepare_for_dispatch__, #__internal_record_path__, #__internal_run_passive__, #__internal_set_current_target__, #__internal_set_dispatch_flag__, #__internal_set_event_phase__, #__js_call__, #__js_set__, #bubbles?, #default_prevented?, #immediate_propagation_stopped?, #init_event, #propagation_stopped?
Methods included from Bridge::Methods
Constructor Details
#initialize(type, init = nil) ⇒ CompositionEvent
Returns a new instance of CompositionEvent.
1297 1298 1299 1300 |
# File 'lib/dommy/event.rb', line 1297 def initialize(type, init = nil) super @data = (read_init(init, "data") || "").to_s end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
1302 1303 1304 |
# File 'lib/dommy/event.rb', line 1302 def data @data end |
Instance Method Details
#__js_get__(key) ⇒ Object
1304 1305 1306 1307 1308 1309 1310 1311 |
# File 'lib/dommy/event.rb', line 1304 def __js_get__(key) case key when "data" @data else super end end |