DescriptionList
Label and value pairs of a record.
Example
- Code
- P-001
- Name
- Field notes 101
- Kind
- Book
- Price
- ₺91.69
Show code
use crate::data::{Product, products};
use zeyn::prelude::*;
pub fn overview(_ctx: &Ctx) -> Node {
let p = &products()[0];
DescriptionList::of(p)
.field(Product::code)
.field(Product::name)
.field(Product::kind)
.field(Product::price)
.columns(2)
.into()
}