menu

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package menu - Content managed by Project Forge, see [projectforge.md] for details.

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,omitempty"`
	Description string `json:"description,omitempty"`
	Badge       string `json:"badge,omitempty"`
	Icon        string `json:"icon,omitempty"`
	Route       string `json:"route,omitempty"`
	Warning     string `json:"warning,omitempty"`
	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) 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

Jump to

Keyboard shortcuts

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