button

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(id int, label string, btntype utils.ButtonType, action tea.Msg) obj.Element

Types

type Button

type Button struct {
	obj.ElementWithID
	// contains filtered or unexported fields
}

func (Button) Action

func (b Button) Action() tea.Msg

func (Button) Data

func (b Button) Data() interface{}

func (Button) Update

func (b Button) Update(msg tea.Msg) (obj.Element, tea.Cmd)

func (Button) View

func (b Button) View(focused bool) string

Jump to

Keyboard shortcuts

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