pub struct NumberInputCpt<FID>where
FID: EzCptIds,{ /* private fields */ }Expand description
A component drawing a FormField of type FormFieldType::Number.
Trait Implementations§
Source§impl<FID, CID, CA, CS, CM> Component<CID, CA, CS, CM> for NumberInputCpt<FID>
impl<FID, CID, CA, CS, CM> Component<CID, CA, CS, CM> for NumberInputCpt<FID>
Source§fn on_event(
&mut self,
event: EzEvent<CID, CM>,
_state: &mut State<CS>,
) -> Vec<EzEvent<CID, CM>>
fn on_event( &mut self, event: EzEvent<CID, CM>, _state: &mut State<CS>, ) -> Vec<EzEvent<CID, CM>>
Method to implement to handle events.
The component will receive any event if it is focused; but only events it is subscribed to otherwise.
Source§fn init(&mut self, state: &mut State<CS>) -> Vec<EzEvent<CID, CM>>
fn init(&mut self, state: &mut State<CS>) -> Vec<EzEvent<CID, CM>>
Method called on first tick only.
Source§impl<FID> Debug for NumberInputCpt<FID>
impl<FID> Debug for NumberInputCpt<FID>
Source§impl<FID, CID, CA, CS, CM> InputCpt<CID, CA, CS, CM> for NumberInputCpt<FID>
impl<FID, CID, CA, CS, CM> InputCpt<CID, CA, CS, CM> for NumberInputCpt<FID>
Source§fn get_value(&self) -> FormFieldValue
fn get_value(&self) -> FormFieldValue
Get the current value of the input field.
Source§fn capture_validation(&mut self) -> bool
fn capture_validation(&mut self) -> bool
Whether this input component should be forwarded the form validation
so it can act on it and return if it has been handled internally.
Source§impl<FID> MockComponent for NumberInputCpt<FID>where
FID: EzCptIds,
impl<FID> MockComponent for NumberInputCpt<FID>where
FID: EzCptIds,
Auto Trait Implementations§
impl<FID> Freeze for NumberInputCpt<FID>
impl<FID> RefUnwindSafe for NumberInputCpt<FID>where
FormField<FID>: RefUnwindSafe,
impl<FID> Send for NumberInputCpt<FID>
impl<FID> Sync for NumberInputCpt<FID>
impl<FID> Unpin for NumberInputCpt<FID>
impl<FID> UnsafeUnpin for NumberInputCpt<FID>where
FormField<FID>: UnsafeUnpin,
impl<FID> UnwindSafe for NumberInputCpt<FID>where
FormField<FID>: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more