primarypane

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 Model

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

func InitModel

func InitModel(props Properties, taskRichSvc services.TaskRichService, width, height int) Model

func (*Model) GetOrCreateTaskPaneByQuery

func (m *Model) GetOrCreateTaskPaneByQuery() *taskstablepane.Model

GetOrCreateTaskPaneByQuery returns the task pane by query. app holds a map of task panes, and the key is the query string.

func (Model) GetPane

func (m Model) GetPane() taskstablepane.Model

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) UpdateTaskPane

func (m *Model) UpdateTaskPane(msg tea.Msg) 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 {
	Query *queries.TaskListQuery

	Tasks []*models.RichTask

	HandleCompleteToggleFn func(id int64) tea.Cmd
	HandleTimerToggleFn    func(id int64) tea.Cmd
	// TODO self handle
	HandleEditTaskFn func(id int64) tea.Cmd
}

func NewProperties

func NewProperties(
	query *queries.TaskListQuery,
	tasks []*models.RichTask,
	handleCompleteToggleFn func(id int64) tea.Cmd,
	handleTimerToggleFn func(id int64) tea.Cmd,
	handleEditTaskFn func(id int64) tea.Cmd,
) *Properties

Jump to

Keyboard shortcuts

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