pub enum ChangeData {
Value(String),
Select(SelectElement),
Files(FileList),
}
Expand description
A type representing change of value(s) of an element after committed by user (onchange event).
Variants§
Value(String)
Value of the element in cases of <input>
, <textarea>
Select(SelectElement)
SelectElement in case of <select>
element. You can use one of methods of SelectElement
to collect your required data such as: value
, selected_index
, selected_indices
or
selected_values
. You can also iterate throught selected_options
yourself.
Files(FileList)
Files
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChangeData
impl RefUnwindSafe for ChangeData
impl Send for ChangeData
impl Sync for ChangeData
impl Unpin for ChangeData
impl UnwindSafe for ChangeData
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
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.