datatable

package
v0.0.0-...-c144a73 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoteColumnKeyID      = "id"
	NoteColumnKey        = "title"
	NoteColumnPath       = "path"
	NoteColumnLink       = "task_title"
	NoteColumnParentType = "parent_type"
)

Variables

This section is empty.

Functions

func RunModel

func RunModel(m *TaskModel)

func RunProjectsModel

func RunProjectsModel(m *AreasModel)

Types

type AddAreaMsg

type AddAreaMsg struct{}

type AddNoteMsg

type AddNoteMsg struct{}

type AddTaskMsg

type AddTaskMsg struct{}

type AreasModel

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

This is the task table "screen" model

func AreaViewModel

func AreaViewModel() AreasModel

func (*AreasModel) Init

func (m *AreasModel) Init() tea.Cmd

Init initializes the model (can use this to run commands upon model initialization)

func (*AreasModel) Update

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

func (AreasModel) View

func (m AreasModel) View() string

type NotesModel

type NotesModel struct {
	Note sqlc.Note
	// contains filtered or unexported fields
}

func NotesView

func NotesView() NotesModel

func (*NotesModel) Init

func (m *NotesModel) Init() tea.Cmd

func (*NotesModel) Update

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

func (*NotesModel) View

func (m *NotesModel) View() string

type RootModel

type RootModel struct {
	Height int
	Width  int

	Tasks TaskModel
	Notes NotesModel
	Areas AreasModel

	CurrentView  View
	PreviousView View
}

func NewRootModel

func NewRootModel() RootModel

func (RootModel) Init

func (m RootModel) Init() tea.Cmd

func (RootModel) Update

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

func (RootModel) View

func (m RootModel) View() string

type SwitchToPreviousViewMsg

type SwitchToPreviousViewMsg struct{}

type SwitchToProjectsTableViewMsg

type SwitchToProjectsTableViewMsg struct{}

type SwitchToTasksTableViewMsg

type SwitchToTasksTableViewMsg struct{}

type TaskModel

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

This is the task table "screen" model

func TaskViewModel

func TaskViewModel() TaskModel

func (*TaskModel) Init

func (m *TaskModel) Init() tea.Cmd

Init initializes the model (can use this to run commands upon model initialization)

func (*TaskModel) Update

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

func (TaskModel) View

func (m TaskModel) View() string

View This is where we define the UI for the task table

type View

type View int
const (
	NotesTableView View = iota
	TasksTableView
	AreasTableView
)

Jump to

Keyboard shortcuts

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