tui

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// tea model key
	AddTaskKey = "ADDTASK"
)
View Source
const (
	// tea model key
	ListKey = "LIST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateModel

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

func NewCreateModel

func NewCreateModel(client *db.TaskDB) *CreateModel

func (*CreateModel) AddModel

func (cm *CreateModel) AddModel(key string, model tea.Model)

func (*CreateModel) Init

func (cm *CreateModel) Init() tea.Cmd

func (*CreateModel) ResetInputs

func (cm *CreateModel) ResetInputs()

func (*CreateModel) Update

func (cm *CreateModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*CreateModel) View

func (cm *CreateModel) View() string

type ListModel

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

func NewListModel

func NewListModel(client *db.TaskDB) (*ListModel, error)

func (*ListModel) AddModel

func (lm *ListModel) AddModel(key string, model tea.Model)

func (*ListModel) Init

func (cm *ListModel) Init() tea.Cmd

func (*ListModel) Update

func (cm *ListModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ListModel) View

func (cm *ListModel) View() string

Jump to

Keyboard shortcuts

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