Struct sauron_core::dom::events::InputEvent
source · pub struct InputEvent {
pub value: String,
pub event: Event,
}
Expand description
a custom InputEvent to contain the input string value
Fields§
§value: String
the input value
TODO: this should be optional since there will be custom component
aside from input
, textarea
, select
event: Event
the actual dom event
Implementations§
source§impl InputEvent
impl InputEvent
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 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