pub struct Layers { /* private fields */ }Expand description
A container that renders children in overlapping layers
Children are rendered in order, with later children appearing on top of earlier ones. This is useful for:
- Modal dialogs
- Tooltips
- Gantt chart overlays
- Any UI where elements need to overlap
§Example
ⓘ
use revue::prelude::*;
let layered = Layers::new()
.child(background_grid()) // Bottom layer
.child(gantt_bars()) // Middle layer
.child(tooltip()); // Top layerImplementations§
Source§impl Layers
impl Layers
Trait Implementations§
Source§impl StyledView for Layers
impl StyledView for Layers
Source§fn remove_class(&mut self, class: &str)
fn remove_class(&mut self, class: &str)
Remove a CSS class
Source§fn toggle_class(&mut self, class: &str)
fn toggle_class(&mut self, class: &str)
Toggle a CSS class
Auto Trait Implementations§
impl Freeze for Layers
impl !RefUnwindSafe for Layers
impl !Send for Layers
impl !Sync for Layers
impl Unpin for Layers
impl !UnwindSafe for Layers
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