Versions in this module Expand all Collapse all v0 v0.2.0 Jul 18, 2026 v0.1.8 May 21, 2026 v0.1.7 May 20, 2026 v0.1.6 May 2, 2026 v0.1.5 Apr 27, 2026 v0.1.4 Apr 26, 2026 v0.1.3 Apr 10, 2026 v0.1.2 Apr 5, 2026 v0.1.1 Apr 2, 2026 Changes in this version + func Templates() *base.TemplateSet + type ContextMenu struct + X int + Y int + func NewContext(id string, opts ...Option) *ContextMenu + func (cm *ContextMenu) ShowAt(x, y int) + type Item struct + Active bool + Badge string + BadgeColor string + Data map[string]any + Disabled bool + Href string + ID string + Icon string + Items []Item + Label string + Shortcut string + Target string + Type ItemType + func (i Item) HasBadge() bool + func (i Item) HasIcon() bool + func (i Item) HasShortcut() bool + func (i Item) IsDivider() bool + func (i Item) IsHeader() bool + func (i Item) IsLink() bool + func (i Item) IsSubmenu() bool + type ItemType int + const ItemTypeDefault + const ItemTypeDivider + const ItemTypeHeader + const ItemTypeSubmenu + type Menu struct + HighlightedIndex int + Items []Item + Open bool + Position string + Trigger string + TriggerIcon string + func New(id string, opts ...Option) *Menu + func (m *Menu) BadgeClass(color string) string + func (m *Menu) ClickableItems() []Item + func (m *Menu) Close() + func (m *Menu) GetItem(id string) *Item + func (m *Menu) HighlightNext() + func (m *Menu) HighlightPrevious() + func (m *Menu) IsHighlighted(id string) bool + func (m *Menu) ItemClass(item Item) string + func (m *Menu) PositionClass() string + func (m *Menu) SelectIndex(index int) string + func (m *Menu) SetItemDisabled(id string, disabled bool) + func (m *Menu) Show() + func (m *Menu) Styles() styles.MenuStyles + func (m *Menu) Toggle() + type NavMenu struct + ActiveID string + Items []Item + OpenSubmenuID string + Orientation string + func NewNav(id string, opts ...NavOption) *NavMenu + func (nm *NavMenu) CloseSubmenu() + func (nm *NavMenu) GetItem(id string) *Item + func (nm *NavMenu) IsActive(id string) bool + func (nm *NavMenu) IsSubmenuOpen(id string) bool + func (nm *NavMenu) OpenSubmenu(id string) + func (nm *NavMenu) SetActive(id string) + func (nm *NavMenu) Styles() styles.MenuStyles + func (nm *NavMenu) ToggleSubmenu(id string) + type NavOption func(*NavMenu) + func WithActiveID(id string) NavOption + func WithNavItems(items []Item) NavOption + func WithNavStyled(styled bool) NavOption + func WithOrientation(orientation string) NavOption + type Option func(*Menu) + func WithItems(items []Item) Option + func WithOpen(open bool) Option + func WithPosition(position string) Option + func WithStyled(styled bool) Option + func WithTrigger(trigger string) Option + func WithTriggerIcon(icon string) Option