pub struct EuvTextareaProps {
pub id: &'static str,
pub name: &'static str,
pub placeholder: &'static str,
pub value: Signal<String>,
pub rows: i32,
pub disabled: Signal<bool>,
pub oninput: Option<Rc<dyn Fn(Event)>>,
pub aria_label: &'static str,
pub onkeydown: Option<Rc<dyn Fn(Event)>>,
pub class: Css,
}Expand description
Props for the euv_textarea component.
A textarea is the multi-line sibling of the single-line input: the value lives in a caller-owned signal so the surrounding form can read the whole field state back.
Fields§
§id: &'static strThe unique identifier of the textarea element.
name: &'static strThe HTML name attribute for the textarea element.
placeholder: &'static strThe placeholder text shown when the field is empty.
value: Signal<String>The current text (reactive signal).
rows: i32The visible height of the field in rows. Zero means the default.
disabled: Signal<bool>Whether the field is disabled.
oninput: Option<Rc<dyn Fn(Event)>>Optional input event handler.
aria_label: &'static strThe accessible name when no visible label is present.
onkeydown: Option<Rc<dyn Fn(Event)>>Optional keyboard handler for editor shortcuts.
class: CssAn optional application class composed with the design-system textarea class.
Implementations§
Source§impl EuvTextareaProps
impl EuvTextareaProps
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_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_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_rows(&self) -> i32
pub fn get_mut_rows(&mut self) -> &mut i32
pub fn set_rows(&mut self, val: i32) -> &mut Self
pub fn get_disabled(&self) -> Signal<bool>
pub fn get_mut_disabled(&mut self) -> &mut Signal<bool>
pub fn set_disabled(&mut self, val: Signal<bool>) -> &mut Self
pub fn get_oninput(&self) -> Rc<dyn Fn(Event) + 'static>
pub fn try_get_oninput(&self) -> &Option<Rc<dyn Fn(Event) + 'static>>
pub fn get_mut_oninput(&mut self) -> &mut Option<Rc<dyn Fn(Event) + 'static>>
pub fn set_oninput( &mut self, val: Option<Rc<dyn Fn(Event) + 'static>>, ) -> &mut Self
pub fn get_aria_label(&self) -> &&'static str
pub fn get_mut_aria_label(&mut self) -> &mut &'static str
pub fn set_aria_label(&mut self, val: &'static str) -> &mut Self
pub fn get_onkeydown(&self) -> Rc<dyn Fn(Event) + 'static>
pub fn try_get_onkeydown(&self) -> &Option<Rc<dyn Fn(Event) + 'static>>
pub fn get_mut_onkeydown(&mut self) -> &mut Option<Rc<dyn Fn(Event) + 'static>>
pub fn set_onkeydown( &mut self, val: Option<Rc<dyn Fn(Event) + 'static>>, ) -> &mut Self
pub fn get_class(&self) -> &Css
pub fn get_mut_class(&mut self) -> &mut Css
pub fn set_class(&mut self, val: Css) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvTextareaProps
impl Clone for EuvTextareaProps
Source§impl Debug for EuvTextareaProps
impl Debug for EuvTextareaProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvTextareaProps
impl !Send for EuvTextareaProps
impl !Sync for EuvTextareaProps
impl !UnwindSafe for EuvTextareaProps
impl Forget for EuvTextareaProps
impl Freeze for EuvTextareaProps
impl Move for EuvTextareaProps
impl Unpin for EuvTextareaProps
impl UnsafeUnpin for EuvTextareaProps
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