Skip to content

Popover

A button that opens a small panel.

Example

Show code
use crate::data::{Product, products};
use zeyn::prelude::*;

pub fn overview(_ctx: &Ctx) -> Node {
    let p = &products()[1];
    Popover::new("Details")
        .title("Product")
        .add(
            DescriptionList::of(p)
                .field(Product::code)
                .field(Product::price)
                .field(Product::stock),
        )
        .into()
}