utils

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callback

func Callback(msg tea.Msg) tea.Cmd

messages

func CheckCmd

func CheckCmd(cmd tea.Cmd, want tea.Msg) bool

func DebugCmd

func DebugCmd(msg string) tea.Cmd

func TargetCmd added in v1.3.0

func TargetCmd(id int, action interface{}) tea.Cmd

Types

type ButtonType

type ButtonType int

button types

const (
	SimpleBtn ButtonType = iota
	AcceptBtn
	ControlBtn
)

type ContainerType

type ContainerType int

container types

const (
	VerticalContainer ContainerType = iota
	VerticalContainerCenter
	VerticalContainerRight
	HorizontalContainer
	HorizontalContainerTop
	HorizontalContainerBottom
)

type DebugMsg

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

func (DebugMsg) String

func (dbg DebugMsg) String() string

type FocusNextMsg

type FocusNextMsg struct{}

type FocusPrevMsg

type FocusPrevMsg struct{}

type InputType

type InputType int
const (
	PathInput InputType = iota
	TextInput
)

type NextStateMsg

type NextStateMsg struct{}

type PrevStateMsg

type PrevStateMsg struct{}

type SubmitMsg

type SubmitMsg struct{}

type TargetedMsg added in v1.3.0

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

func (TargetedMsg) Action added in v1.3.0

func (msg TargetedMsg) Action() interface{}

func (TargetedMsg) ID added in v1.3.0

func (msg TargetedMsg) ID() int

type TextType

type TextType int

text types

const (
	NormalText TextType = iota
	LabelText
	DimmedText
)

Jump to

Keyboard shortcuts

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