pub struct EuvCarouselProps {
pub slides: Vec<EuvCarouselSlide>,
pub active: Signal<u32>,
pub on_change: Option<Rc<dyn Fn(u32)>>,
}Expand description
Props for the euv_carousel component.
Defines the strongly-typed interface for a slideshow: the slides it cycles through and the slide that is currently showing.
Fields§
§slides: Vec<EuvCarouselSlide>The slides, in display order.
active: Signal<u32>The index of the slide that is currently showing.
on_change: Option<Rc<dyn Fn(u32)>>The callback fired when the shown slide changes.
Trait Implementations§
Source§impl Clone for EuvCarouselProps
impl Clone for EuvCarouselProps
Source§impl Debug for EuvCarouselProps
impl Debug for EuvCarouselProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvCarouselProps
impl !Send for EuvCarouselProps
impl !Sync for EuvCarouselProps
impl !UnwindSafe for EuvCarouselProps
impl Freeze for EuvCarouselProps
impl Unpin for EuvCarouselProps
impl UnsafeUnpin for EuvCarouselProps
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