gridmenu

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice struct {
	Name        string
	Description string
}

type Model

type Model struct {
	Width int
	// contains filtered or unexported fields
}

func New

func New(choices []Choice, maxColumns, maxRows int) Model

func (*Model) Margin

func (m *Model) Margin(i ...int)

func (Model) Selection

func (m Model) Selection() string

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Styles

type Styles struct {
	Choice    lipgloss.Style
	Selection lipgloss.Style
}

Jump to

Keyboard shortcuts

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