button

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	View  string
	Width int

	Click tea.Cmd
}

func NewButton

func NewButton(text string, hintPosition int, action tea.Cmd) *Button

type Toggle

type Toggle struct {
	Width int

	Click tea.Cmd
	// contains filtered or unexported fields
}

func NewToggle

func NewToggle(text string, hintPosition int, action tea.Cmd, initial bool) *Toggle

func (*Toggle) ChangeStatus

func (t *Toggle) ChangeStatus(status bool) *Toggle

func (*Toggle) View

func (t *Toggle) View() string

Jump to

Keyboard shortcuts

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