Struct freya::components::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(...)
, .width(...)
(optional), .height(...)
(optional), .max_lines(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputProps
.