pub struct Props {
pub label: String,
pub value: Option<String>,
pub validate: ValidationFn<Option<String>>,
pub inline: bool,
pub options: Vec<(String, String)>,
pub on_change: Option<Callback<Option<String>>>,
pub on_blur: Option<Callback<()>>,
}Fields§
§label: StringThe input label
value: Option<String>The controlled value of the input
validate: ValidationFn<Option<String>>Validation function
inline: boolWhether or not the field should be inline
options: Vec<(String, String)>An array of options, (value, label)
on_change: Option<Callback<Option<String>>>A callback that is fired when the user changes the input value
on_blur: Option<Callback<()>>A callback that is fired when the select loses focus
Trait Implementations§
impl StructuralPartialEq for Props
Auto Trait Implementations§
impl Freeze for Props
impl !RefUnwindSafe for Props
impl !Send for Props
impl !Sync for Props
impl Unpin for Props
impl !UnwindSafe for Props
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)