Documentation ¶
Index ¶
- Variables
- func RenderTasksRows(tasks []*models.RichTask) []table.Row
- type Model
- func (m Model) CurrentAndTotalPage() (int, int)
- func (m *Model) Filter(input textinput.Model)
- func (m *Model) GoToPage(num int)
- func (m Model) Init() tea.Cmd
- func (m *Model) Resize(width, height int)
- func (m Model) Selected() (int64, error)
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) UpdateTyped(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
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 ¶
Types ¶
type Model ¶
func (Model) CurrentAndTotalPage ¶
Click to show internal directories.
Click to hide internal directories.