Struct ybc::InputProps
source · pub struct InputProps {
pub name: String,
pub value: String,
pub update: Callback<String>,
pub classes: Classes,
pub type: InputType,
pub placeholder: String,
pub size: Option<Size>,
pub rounded: bool,
pub loading: bool,
pub disabled: bool,
pub readonly: bool,
pub static: bool,
}
Fields§
§name: String
The name
attribute for this form element.
value: String
The controlled value of this form element.
update: Callback<String>
The callback to be used for propagating changes to this element’s value.
classes: Classes
§type: InputType
The input type of this component.
placeholder: String
The placeholder value for this component.
size: Option<Size>
The size of this component.
rounded: bool
Use rounded appearance.
loading: bool
Display a loading spinner within this component.
disabled: bool
Disable this component.
readonly: bool
Make this component read-only.
static: bool
Make this component static.
Trait Implementations§
source§impl Clone for InputProps
impl Clone for InputProps
source§fn clone(&self) -> InputProps
fn clone(&self) -> InputProps
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InputProps
impl Debug for InputProps
source§impl PartialEq<InputProps> for InputProps
impl PartialEq<InputProps> for InputProps
source§fn eq(&self, other: &InputProps) -> bool
fn eq(&self, other: &InputProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for InputProps
impl Properties for InputProps
impl StructuralPartialEq for InputProps
Auto Trait Implementations§
impl !RefUnwindSafe for InputProps
impl !Send for InputProps
impl !Sync for InputProps
impl Unpin for InputProps
impl !UnwindSafe for InputProps
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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.