pub struct TimePickerInputProps {
pub class: Option<String>,
pub style: Option<String>,
pub value: Option<String>,
pub placeholder: Option<String>,
pub disabled: Option<bool>,
pub required: Option<bool>,
pub format: Option<TimeFormat>,
pub step: Option<u32>,
pub on_change: Option<Callback<String>>,
pub on_focus: Option<Callback<()>>,
pub on_blur: Option<Callback<()>>,
}Expand description
Props for the TimePickerInput component.
Time Picker Input component
§Optional Props
- class:
String - style:
String - value:
String - placeholder:
String - disabled:
bool - required:
bool - format:
TimeFormat - step:
u32 - on_change:
Callback<String> - on_focus:
Callback<()> - on_blur:
Callback<()>
Fields§
§class: Option<String>§style: Option<String>§value: Option<String>§placeholder: Option<String>§disabled: Option<bool>§required: Option<bool>§format: Option<TimeFormat>§step: Option<u32>§on_change: Option<Callback<String>>§on_focus: Option<Callback<()>>§on_blur: Option<Callback<()>>Implementations§
Source§impl TimePickerInputProps
impl TimePickerInputProps
Sourcepub fn builder() -> TimePickerInputPropsBuilder
pub fn builder() -> TimePickerInputPropsBuilder
Create a builder for building TimePickerInputProps.
On the builder, call .class(...)(optional), .style(...)(optional), .value(...)(optional), .placeholder(...)(optional), .disabled(...)(optional), .required(...)(optional), .format(...)(optional), .step(...)(optional), .on_change(...)(optional), .on_focus(...)(optional), .on_blur(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of TimePickerInputProps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimePickerInputProps
impl RefUnwindSafe for TimePickerInputProps
impl Send for TimePickerInputProps
impl Sync for TimePickerInputProps
impl Unpin for TimePickerInputProps
impl UnwindSafe for TimePickerInputProps
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.