menu

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Separator = &Item{}

Functions

This section is empty.

Types

type Item

type Item struct {
	Key         string `json:"key"`
	Title       string `json:"title,omitzero"`
	Description string `json:"description,omitzero"`
	Badge       string `json:"badge,omitzero"`
	Icon        string `json:"icon,omitzero"`
	Route       string `json:"route,omitzero"`
	Hidden      bool   `json:"hidden"`
	Warning     string `json:"warning,omitzero"`
	Children    Items  `json:"children,omitempty"`
}

func ItemFromString added in v1.0.4

func ItemFromString(bc string, dflt string) *Item

func (*Item) AddChild

func (i *Item) AddChild(child *Item)

func (*Item) Clone added in v1.5.17

func (i *Item) Clone() *Item

func (*Item) Desc added in v0.4.2

func (i *Item) Desc() string

type Items

type Items []*Item

func (Items) Get

func (i Items) Get(key string) *Item

func (Items) GetByPath

func (i Items) GetByPath(path []string) *Item

func (Items) Keys

func (i Items) Keys() []string

func (Items) Visible added in v1.4.3

func (i Items) Visible() Items

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL