Struct freya::prelude::InputProps
source · pub struct InputProps<'a> {
pub value: String,
pub onchange: EventHandler<'a, String>,
/* private fields */
}
Expand description
Input
component properties.
Fields§
§value: String
Current value of the Input
onchange: EventHandler<'a, String>
Handler for the onchange
event.
Implementations§
source§impl<'a> InputProps<'a>
impl<'a> InputProps<'a>
sourcepub fn builder() -> InputPropsBuilder<'a, ((), (), (), (), ())>
pub fn builder() -> InputPropsBuilder<'a, ((), (), (), (), ())>
Create a builder for building InputProps
.
On the builder, call .value(...)
, .onchange(...)
, .hidden(...)
(optional), .width(...)
(optional), .margin(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputProps
.
Trait Implementations§
source§impl<'a> Properties for InputProps<'a>
impl<'a> Properties for InputProps<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InputProps<'a>
impl<'a> !Send for InputProps<'a>
impl<'a> !Sync for InputProps<'a>
impl<'a> Unpin for InputProps<'a>
impl<'a> !UnwindSafe for InputProps<'a>
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