sidebar

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemChangeSubscriber

type ItemChangeSubscriber func(tab string, item models.Item) error

type Model

type Model struct {
	ui.Focusable
	ui.Resizable
	// contains filtered or unexported fields
}

func InitModel

func InitModel(p Properties) Model

func (Model) GetStates

func (m Model) GetStates() States

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Resize

func (m *Model) Resize(width, height int)

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) UpdateTyped

func (m Model) UpdateTyped(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Properties

type Properties struct {
}

type States

type States struct {
	IsCollapsed bool
	// CurrentTabIndex is the index of the defaultTabs
	CurrentTabIndex int
	// ItemIndexReadonlyMap show current list's item index
	ItemIndexReadonlyMap map[string]int64

	Contexts []models.Context
	Folders  []models.Folder
	Goals    []models.Goal
}

func NewStates

func NewStates() *States

Jump to

Keyboard shortcuts

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