menu

package
v0.0.0-...-fa4d88c Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Badge

type Badge struct {
	Content int
}

type Config

type Config struct {
	Items Items
}

type Item

type Item struct {
	ID      string
	Badge   *Badge
	Icon    icon.Icon
	Popover *Popover
}

type Items

type Items []Item
type Menu struct {
	Items Items
}

func New

func New() *Menu

type Popover

type Popover struct {
	Items PopoverItems
}

type PopoverItem

type PopoverItem struct {
	Label   string
	Icon    *icon.PopoverIcon
	OnClick *event.OnClick
}

type PopoverItems

type PopoverItems []PopoverItem

Jump to

Keyboard shortcuts

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