ui/tag_group
Types
Messages for tag group keyboard navigation
pub type Msg {
MoveNext
MovePrev
MoveFirst
MoveLast
Remove
Edit
Activate
}
Constructors
-
MoveNext -
MovePrev -
MoveFirst -
MoveLast -
Remove -
Edit -
Activate
pub type SelectionMode {
None
Single
Multiple
}
Constructors
-
None -
Single -
Multiple
Values
pub fn aria_label(label: String) -> attribute.Attribute(a)
pub fn keymap(key_event: keyboard.KeyEvent) -> option.Option(Msg)
Keymap for tag group keyboard navigation
Keyboard interactions:
- Arrow keys: Navigate between tags
- Delete: Remove tag
- Enter: Edit/activate tag
- Home: First tag
- End: Last tag
Follows WAI-ARIA Tag Group pattern.
pub fn selection_mode(m: SelectionMode) -> attribute.Attribute(a)
pub fn size(s: Size) -> attribute.Attribute(a)
pub fn tag(
attributes: List(attribute.Attribute(a)),
children: List(element.Element(a)),
) -> element.Element(a)
pub fn tag_group(
attributes: List(attribute.Attribute(a)),
label: String,
children: List(element.Element(a)),
) -> element.Element(a)
pub fn tag_with_remove(
attributes: List(attribute.Attribute(a)),
children: List(element.Element(a)),
) -> element.Element(a)
pub fn variant(v: Variant) -> attribute.Attribute(a)