pub struct EuvFieldProps {
pub id: &'static str,
pub name: &'static str,
pub label: &'static str,
pub input_type: &'static str,
pub placeholder: &'static str,
pub autocomplete: &'static str,
pub value: Signal<String>,
pub error: Option<Signal<String>>,
pub oninput: Option<Rc<dyn Fn(Event)>>,
}Expand description
Props for the euv_field component.
Defines the strongly-typed interface for a form field with label, input, and error display.
Fields§
§id: &'static strThe unique identifier for the input element.
name: &'static strThe HTML name attribute for the input element.
label: &'static strThe label text displayed above the input.
input_type: &'static strThe HTML input type (e.g. “text”, “email”, “password”, “number”).
placeholder: &'static strThe placeholder text shown when the input is empty.
autocomplete: &'static strThe autocomplete hint for the browser.
value: Signal<String>The current input value.
error: Option<Signal<String>>The error message signal; when non-empty, the input shows error styling. When None, no error display.
oninput: Option<Rc<dyn Fn(Event)>>Optional input event handler; defaults to on_input_value(value) if None.
Implementations§
Source§impl EuvFieldProps
impl EuvFieldProps
pub fn get_id(&self) -> &'static str
pub fn get_mut_id(&mut self) -> &mut &'static str
pub fn set_id(&mut self, val: &'static str) -> &mut Self
pub fn get_name(&self) -> &'static str
pub fn get_mut_name(&mut self) -> &mut &'static str
pub fn set_name(&mut self, val: &'static str) -> &mut Self
pub fn get_label(&self) -> &'static str
pub fn get_mut_label(&mut self) -> &mut &'static str
pub fn set_label(&mut self, val: &'static str) -> &mut Self
pub fn get_input_type(&self) -> &'static str
pub fn get_mut_input_type(&mut self) -> &mut &'static str
pub fn set_input_type(&mut self, val: &'static str) -> &mut Self
pub fn get_placeholder(&self) -> &'static str
pub fn get_mut_placeholder(&mut self) -> &mut &'static str
pub fn set_placeholder(&mut self, val: &'static str) -> &mut Self
pub fn get_autocomplete(&self) -> &'static str
pub fn get_mut_autocomplete(&mut self) -> &mut &'static str
pub fn set_autocomplete(&mut self, val: &'static str) -> &mut Self
pub fn get_value(&self) -> Signal<String>
pub fn get_mut_value(&mut self) -> &mut Signal<String>
pub fn set_value(&mut self, val: Signal<String>) -> &mut Self
pub fn get_error(&self) -> Signal<String>
pub fn try_get_error(&self) -> &Option<Signal<String>>
pub fn get_mut_error(&mut self) -> &mut Option<Signal<String>>
pub fn set_error(&mut self, val: Option<Signal<String>>) -> &mut Self
pub fn get_oninput(&self) -> Rc<dyn Fn(Event)>
pub fn try_get_oninput(&self) -> &Option<Rc<dyn Fn(Event)>>
pub fn get_mut_oninput(&mut self) -> &mut Option<Rc<dyn Fn(Event)>>
pub fn set_oninput(&mut self, val: Option<Rc<dyn Fn(Event)>>) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvFieldProps
impl Clone for EuvFieldProps
Source§fn clone(&self) -> EuvFieldProps
fn clone(&self) -> EuvFieldProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EuvFieldProps
impl Debug for EuvFieldProps
Source§impl Default for EuvFieldProps
impl Default for EuvFieldProps
Source§fn default() -> EuvFieldProps
fn default() -> EuvFieldProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvFieldProps
impl !Send for EuvFieldProps
impl !Sync for EuvFieldProps
impl !UnwindSafe for EuvFieldProps
impl Freeze for EuvFieldProps
impl Unpin for EuvFieldProps
impl UnsafeUnpin for EuvFieldProps
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