Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { *tview.Application // contains filtered or unexported fields }
Application represents whole TUI application.
func NewApplication ¶
func NewApplication() *Application
NewApplication initializes and returns Application.
func (*Application) Subscribe ¶
func (app *Application) Subscribe(store *todo.Store)
Subscribe subscribes to the update of todos.
func (*Application) Update ¶
func (app *Application) Update(todos []todo.Todo)
Update updates views along with given todos.
type Description ¶
Description represents a view to display the description of a TODO.
func (*Description) SetText ¶
func (d *Description) SetText(text string)
SetText sets given text to body.
type Table ¶
Table represents a table to list TODOs.
func (*Table) SetInputCapture ¶
SetInputCapture sets wrapper function to pass selected todo to original function.
func (*Table) SetSelectedFunc ¶
SetSelectedFunc sets wrapper function to pass selected todo to original function.
func (*Table) SetSelectionChangedFunc ¶
SetSelectionChangedFunc sets wrapper function to pass selected todo to original function.
Click to show internal directories.
Click to hide internal directories.