pub struct EuvModalProps {
pub title: &'static str,
pub onclick: Option<Rc<dyn Fn(Event)>>,
}Expand description
Props for the euv_modal component.
Defines the strongly-typed interface for the modal dialog.
Fields§
§title: &'static strThe modal title text.
onclick: Option<Rc<dyn Fn(Event)>>Optional close handler triggered by overlay or close button click.
Implementations§
Source§impl EuvModalProps
impl EuvModalProps
pub fn get_title(&self) -> &'static str
pub fn get_mut_title(&mut self) -> &mut &'static str
pub fn set_title(&mut self, val: &'static str) -> &mut Self
pub fn get_onclick(&self) -> Rc<dyn Fn(Event)>
pub fn try_get_onclick(&self) -> &Option<Rc<dyn Fn(Event)>>
pub fn get_mut_onclick(&mut self) -> &mut Option<Rc<dyn Fn(Event)>>
pub fn set_onclick(&mut self, val: Option<Rc<dyn Fn(Event)>>) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvModalProps
impl Clone for EuvModalProps
Source§fn clone(&self) -> EuvModalProps
fn clone(&self) -> EuvModalProps
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 EuvModalProps
impl Debug for EuvModalProps
Source§impl Default for EuvModalProps
impl Default for EuvModalProps
Source§fn default() -> EuvModalProps
fn default() -> EuvModalProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvModalProps
impl !Send for EuvModalProps
impl !Sync for EuvModalProps
impl !UnwindSafe for EuvModalProps
impl Freeze for EuvModalProps
impl Unpin for EuvModalProps
impl UnsafeUnpin for EuvModalProps
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