Struct patternfly_yew::TextInputProps
source · pub struct TextInputProps {Show 17 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 autocomplete: Option<String>,
pub onchange: Callback<String>,
pub oninput: Callback<String>,
pub onvalidate: Callback<ValidationContext<String>>,
pub validator: Validator<String, InputState>,
}Fields§
§name: String§id: String§value: String§required: bool§disabled: bool§readonly: bool§state: InputState§icon: TextInputIcon§type: String§placeholder: String§autofocus: bool§form: Option<String>§autocomplete: 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§
source§impl Clone for TextInputProps
impl Clone for TextInputProps
source§fn clone(&self) -> TextInputProps
fn clone(&self) -> TextInputProps
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 PartialEq<TextInputProps> for TextInputProps
impl PartialEq<TextInputProps> for TextInputProps
source§fn eq(&self, other: &TextInputProps) -> bool
fn eq(&self, other: &TextInputProps) -> bool
source§impl Properties for TextInputProps
impl Properties for TextInputProps
source§impl 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§
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.