widget

package
v0.0.0-...-839ffb1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ActionListItem

type ActionListItem struct {
	orvyn.BaseWidget
	orvyn.BaseFocusable
	// contains filtered or unexported fields
}

func (*ActionListItem) FilterValue

func (a *ActionListItem) FilterValue() string

FilterValue implements list.ListItem.

func (*ActionListItem) GetData

func (a *ActionListItem) GetData() ActionListItemData

GetData implements list.ListItem.

func (*ActionListItem) Render

func (a *ActionListItem) Render() string

Render implements list.ListItem.

func (*ActionListItem) Resize

func (a *ActionListItem) Resize(size orvyn.Size)

func (*ActionListItem) UpdateData

func (a *ActionListItem) UpdateData(data ActionListItemData)

UpdateData implements list.ListItem.

type ActionListItemData

type ActionListItemData struct {
	Label  string
	Action func() tea.Cmd
}

Jump to

Keyboard shortcuts

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