Documentation ¶
Index ¶
- func Callback(msg tea.Msg) tea.Cmd
- func CheckCmd(cmd tea.Cmd, want tea.Msg) bool
- func DebugCmd(msg string) tea.Cmd
- func TargetCmd(id int, action interface{}) tea.Cmd
- type ButtonType
- type ContainerType
- type DebugMsg
- type FocusNextMsg
- type FocusPrevMsg
- type InputType
- type NextStateMsg
- type PrevStateMsg
- type SubmitMsg
- type TargetedMsg
- type TextType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 FocusNextMsg ¶
type FocusNextMsg struct{}
type FocusPrevMsg ¶
type FocusPrevMsg struct{}
type NextStateMsg ¶
type NextStateMsg struct{}
type PrevStateMsg ¶
type PrevStateMsg 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
Click to show internal directories.
Click to hide internal directories.