Struct patternfly_yew::TextInputProps
source · [−]pub struct TextInputProps {Show 16 fields
pub name: String,
pub id: String,
pub value: String,
pub required: bool,
pub disabled: bool,
pub readonly: bool,
pub state: InputState,
pub icon: TextInputIcon,
pub type: String,
pub placeholder: String,
pub autofocus: bool,
pub form: Option<String>,
pub onchange: Callback<String>,
pub oninput: Callback<String>,
pub onvalidate: Callback<ValidationContext<String>>,
pub validator: Validator<String, InputState>,
}Fields
name: Stringid: Stringvalue: Stringrequired: booldisabled: boolreadonly: boolstate: InputStateicon: TextInputIcontype: Stringplaceholder: Stringautofocus: boolform: Option<String>onchange: Callback<String>This event is triggered when the element loses focus.
oninput: Callback<String>This event is similar to the onchange event. The difference is that the oninput event occurs immediately after the value of an element has changed.
onvalidate: Callback<ValidationContext<String>>validator: Validator<String, InputState>Trait Implementations
sourceimpl Clone for TextInputProps
impl Clone for TextInputProps
sourcefn clone(&self) -> TextInputProps
fn clone(&self) -> TextInputProps
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl PartialEq<TextInputProps> for TextInputProps
impl PartialEq<TextInputProps> for TextInputProps
sourcefn eq(&self, other: &TextInputProps) -> bool
fn eq(&self, other: &TextInputProps) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Properties for TextInputProps
impl Properties for TextInputProps
sourceimpl ValidatingComponentProperties<String> for TextInputProps
impl ValidatingComponentProperties<String> for TextInputProps
fn set_onvalidate(&mut self, onvalidate: Callback<ValidationContext<String>>)
fn set_input_state(&mut self, state: InputState)
impl StructuralPartialEq for TextInputProps
Auto Trait Implementations
impl !RefUnwindSafe for TextInputProps
impl !Send for TextInputProps
impl !Sync for TextInputProps
impl Unpin for TextInputProps
impl !UnwindSafe for TextInputProps
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcefn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert self to a value of a Properties struct.
sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcefn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert self to a value of a Properties struct.