pub struct OnInput { /* private fields */ }Expand description
Execute when a user writes something in an <input> field.
- Bubbles: Yes
- Cancelable: No
- Event type:
Event+InputEvent - Supported HTML tags:
<input type="color">,<input type="date">,<input type="datetime">,<input type="email">,<input type="month">,<input type="number">,<input type="password">,<input type="range">,<input type="search">,<input type="tel">,<input type="text">,<input type="time">,<input type="url">,<input type="week">and<textarea>.
Implementations§
Source§impl OnInput
methods inherit form InputEvent
impl OnInput
methods inherit form InputEvent
Sourcepub fn is_composing(&self) -> bool
pub fn is_composing(&self) -> bool
Getter for the isComposing field of this object.
Sourcepub fn input_type(&self) -> String
pub fn input_type(&self) -> String
Getter for the inputType field of this object.
Sourcepub fn data_transfer(&self) -> Option<DataTransfer>
pub fn data_transfer(&self) -> Option<DataTransfer>
Getter for the dataTransfer field of this object.
Sourcepub fn get_target_ranges(&self) -> Array
pub fn get_target_ranges(&self) -> Array
The getTargetRanges() method.
Source§impl OnInput
methods inherit form [UiEvent]
impl OnInput
methods inherit form [UiEvent]
Sourcepub fn range_parent(&self) -> Option<Node>
pub fn range_parent(&self) -> Option<Node>
Getter for the rangeParent field of this object.
Sourcepub fn range_offset(&self) -> i32
pub fn range_offset(&self) -> i32
Getter for the rangeOffset field of this object.
Source§impl OnInput
methods inherit form Event
impl OnInput
methods inherit form Event
Sourcepub fn target(&self) -> Option<EventTarget>
pub fn target(&self) -> Option<EventTarget>
Getter for the target field of this object.
Sourcepub fn current_target(&self) -> Option<EventTarget>
pub fn current_target(&self) -> Option<EventTarget>
Getter for the currentTarget field of this object.
Sourcepub fn event_phase(&self) -> u16
pub fn event_phase(&self) -> u16
Getter for the eventPhase field of this object.
Sourcepub fn cancelable(&self) -> bool
pub fn cancelable(&self) -> bool
Getter for the cancelable field of this object.
Sourcepub fn default_prevented(&self) -> bool
pub fn default_prevented(&self) -> bool
Getter for the defaultPrevented field of this object.
Sourcepub fn is_trusted(&self) -> bool
pub fn is_trusted(&self) -> bool
Getter for the isTrusted field of this object.
Sourcepub fn time_stamp(&self) -> f64
pub fn time_stamp(&self) -> f64
Getter for the timeStamp field of this object.
Sourcepub fn cancel_bubble(&self) -> bool
pub fn cancel_bubble(&self) -> bool
Getter for the cancelBubble field of this object.
Sourcepub fn set_cancel_bubble(&self, value: bool)
pub fn set_cancel_bubble(&self, value: bool)
Setter for the cancelBubble field of this object.
Sourcepub fn composed_path(&self) -> Array
pub fn composed_path(&self) -> Array
The composedPath() method.
Sourcepub fn prevent_default(&self)
pub fn prevent_default(&self)
The preventDefault() method.
Sourcepub fn stop_immediate_propagation(&self)
pub fn stop_immediate_propagation(&self)
The stopImmediatePropagation() method.
Sourcepub fn stop_propagation(&self)
pub fn stop_propagation(&self)
The stopPropagation() method.