taskstablepane

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultColumns = []table.Column{
		table.NewColumn(columnKeyCompleted, "[ ]", 3).
			WithStyle(lipgloss.NewStyle().Faint(true).Foreground(lipgloss.Color("#88f"))),
		table.NewColumn(columnKeyCompletedValue, "", 0),
		table.NewFlexColumn(columnKeyTitle, "Title", 0).WithFiltered(true),
		table.NewColumn(columnKeyContext, "Context", 10),
		table.NewColumn(columnKeyPriority, "Priority", 10),
		table.NewColumn(columnKeyPriorityValue, "", 0),
		table.NewColumn(columnKeyStatus, "Status", 10),
		table.NewColumn(columnKeyStatusValue, "", 0),
		table.NewColumn(columnKeyGoal, "Goal", 10),
		table.NewColumn(columnKeyDue, "DueString", 10),
		table.NewColumn(columnKeyDueValue, "", 0),
		table.NewColumn(columnKeyRepeat, "Repeat", 10),
		table.NewColumn(columnKeyLength, "Length", 10),
		table.NewColumn(columnKeyTimer, "Timer", 10),
		table.NewColumn(columnKeyTag, "Tag", 10),
	}
)

Functions

func RenderTasksRows

func RenderTasksRows(tasks []*models.RichTask) []table.Row

Types

type Model

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

func InitModel

func InitModel(tasks []*models.RichTask, width, height int) Model

func (Model) CurrentAndTotalPage

func (m Model) CurrentAndTotalPage() (int, int)

func (*Model) Filter

func (m *Model) Filter(input textinput.Model)

func (*Model) GoToPage added in v0.1.1

func (m *Model) GoToPage(num int)

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Resize

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

func (Model) Selected

func (m Model) Selected() (int64, error)

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

Jump to

Keyboard shortcuts

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