Struct sauron::InputEvent
source · pub struct InputEvent {
pub event: Event,
}
Expand description
TODO: expand this much farther by getting the InputEvent data, data_transfer, event_type, is_composing events. a custom InputEvent to contain the input string value
Fields§
§event: Event
the actual dom event
Implementations§
source§impl InputEvent
impl InputEvent
sourcepub fn prevent_default(&self)
pub fn prevent_default(&self)
call prevent default on the underlying event
sourcepub fn stop_propagation(&self)
pub fn stop_propagation(&self)
call stop_propagation on the underlying event
sourcepub fn value(&self) -> String
pub fn value(&self) -> String
the input value
TODO: this should be optional since there will be custom component
aside from input
, textarea
, select
sourcepub fn create_web_event() -> Event
pub fn create_web_event() -> Event
create a native web event
sourcepub fn create_web_event_composed() -> Event
pub fn create_web_event_composed() -> Event
create a native web event, with composed set to true
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl !Send for InputEvent
impl !Sync for InputEvent
impl Unpin for InputEvent
impl UnwindSafe for InputEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more