pub struct EuvCollapseProps {
pub items: Vec<EuvCollapseItem>,
pub open_keys: Signal<Vec<String>>,
pub allow_multiple: bool,
}Expand description
Props for the euv_collapse component.
open_keys holds the currently-open section keys; a Vec<String>
(rather than a single key) is used so allow_multiple can widen or
narrow the set without a different prop type. An empty list means every
section is closed.
Fields§
§items: Vec<EuvCollapseItem>The accordion sections, in display order.
open_keys: Signal<Vec<String>>The keys of the currently-open sections (empty means all closed).
allow_multiple: boolWhether more than one section may stay open at the same time.
Trait Implementations§
Source§impl Clone for EuvCollapseProps
impl Clone for EuvCollapseProps
Source§impl Debug for EuvCollapseProps
impl Debug for EuvCollapseProps
Auto Trait Implementations§
impl Freeze for EuvCollapseProps
impl RefUnwindSafe for EuvCollapseProps
impl Send for EuvCollapseProps
impl Sync for EuvCollapseProps
impl Unpin for EuvCollapseProps
impl UnsafeUnpin for EuvCollapseProps
impl UnwindSafe for EuvCollapseProps
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