Fusuma

Components / Layout

named

view, called id.

Try it

This is the Navigation page of the gallery, running in your browser: named is on it, and it is the real widget. Press Run, then use it.

Live: Navigation, where named is usedOpen full size

Also on this pagetext_fmttoastmenugestures

view, called id.

A name (an Id) is how a menu finds its button, a hover card its anchor, a task the field to focus, and a test the node it wants.

Signature

pub const fn named<V>(id: Id, view: V) -> Named<V>

Example

use fusuma::{Id, button, named};
const SAVE: Id = Id::new(1);
let view = named(SAVE, button("Save"));
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.texts(), ["Save"]);

All components · Source