pub struct EuvBackTopProps {
pub visible: Signal<bool>,
pub label: &'static str,
pub on_click: Option<Rc<dyn Fn(Event)>>,
}Expand description
Props for the euv_back_top component.
Defines the strongly-typed interface for a back-to-top button: when it is on screen, what it says, and what happens when it is taken.
Fields§
§visible: Signal<bool>Whether the button is on screen.
The caller owns the visibility — it is usually driven by the
page’s scroll offset, through use_scroll.
label: &'static strThe label on the button.
on_click: Option<Rc<dyn Fn(Event)>>The callback fired when the button is taken.
Trait Implementations§
Source§impl Clone for EuvBackTopProps
impl Clone for EuvBackTopProps
Source§impl Debug for EuvBackTopProps
impl Debug for EuvBackTopProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvBackTopProps
impl !Send for EuvBackTopProps
impl !Sync for EuvBackTopProps
impl !UnwindSafe for EuvBackTopProps
impl Freeze for EuvBackTopProps
impl Unpin for EuvBackTopProps
impl UnsafeUnpin for EuvBackTopProps
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