Class: Dommy::CompositionEvent
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 Event
#__internal_clear_propagation_flags__, #__internal_mark_trusted__, #__internal_prepare_for_dispatch__, #__internal_record_path__, #__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.
887 888 889 890 |
# File 'lib/dommy/event.rb', line 887 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.
892 893 894 |
# File 'lib/dommy/event.rb', line 892 def data @data end |
Instance Method Details
#__js_get__(key) ⇒ Object
894 895 896 897 898 899 900 901 |
# File 'lib/dommy/event.rb', line 894 def __js_get__(key) case key when "data" @data else super end end |