pub struct EuvTocProps {
pub title: &'static str,
pub items: &'static [EuvTocItem],
pub active: Signal<String>,
}Expand description
Props for the euv_toc component.
Fields§
§title: &'static strThe list title (for example On this page).
items: &'static [EuvTocItem]The anchor items.
active: Signal<String>The href of the entry the reader is currently at; that entry
renders the _active class.
A signal rather than a plain field so scroll-driven highlighting is ordinary reactive state the renderer owns: the caller writes the signal and the TOC repaints from it. A caller with no scroll spy leaves this empty and every entry renders inactive.
Trait Implementations§
Source§impl Clone for EuvTocProps
impl Clone for EuvTocProps
Source§impl Debug for EuvTocProps
impl Debug for EuvTocProps
Auto Trait Implementations§
impl Freeze for EuvTocProps
impl RefUnwindSafe for EuvTocProps
impl Send for EuvTocProps
impl Sync for EuvTocProps
impl Unpin for EuvTocProps
impl UnsafeUnpin for EuvTocProps
impl UnwindSafe for EuvTocProps
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