Popover
A button that opens a small panel.
Example
Product
- Code
- P-002
- Price
- ₺170.88
- Stock
- 74
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()
}