actionsmenu

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionsMenuResultMsg

type ActionsMenuResultMsg struct {
	Action    string
	Confirmed bool
}
type MenuItem struct {
	Action    string
	Label     string
	NeedRow   bool
	Separator bool
}

type Model

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

func New

func New(title string, items []MenuItem, hasSelectedRow bool) Model

func (Model) BoxView added in v0.1.1

func (m Model) BoxView() string

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) IsFocused

func (m Model) IsFocused() bool

func (*Model) SetTheme

func (m *Model) SetTheme(th theme.Theme)

func (Model) Update

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

func (Model) View

func (m Model) View() tea.View

Jump to

Keyboard shortcuts

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