pub struct EuvCascaderProps {
pub options: Vec<EuvCascaderOption>,
pub value: Signal<Vec<String>>,
pub placeholder: &'static str,
pub label: &'static str,
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_cascader component.
The chosen path lives in a caller-owned Signal<Vec<String>> so the
picker takes part in two-way binding; the open state of the panel and
the path the reader is browsing are owned by the component itself.
Fields§
§options: Vec<EuvCascaderOption>The top-level choices.
value: Signal<Vec<String>>The values of the chosen path, outermost first.
placeholder: &'static strThe text shown when nothing is chosen.
label: &'static strThe group label above the control.
on_select: Option<Rc<dyn Fn(&'static str)>>The callback fired when a choice is made.
Trait Implementations§
Source§impl Clone for EuvCascaderProps
impl Clone for EuvCascaderProps
Source§impl Debug for EuvCascaderProps
impl Debug for EuvCascaderProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvCascaderProps
impl !Send for EuvCascaderProps
impl !Sync for EuvCascaderProps
impl !UnwindSafe for EuvCascaderProps
impl Freeze for EuvCascaderProps
impl Unpin for EuvCascaderProps
impl UnsafeUnpin for EuvCascaderProps
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