ui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCenteredModal

func GetCenteredModal(p tview.Primitive, width, height int) tview.Primitive

func GetSize

func GetSize() (width, height int)

func NewAddPage

func NewAddPage(p *BoardPage, pos int) tview.Primitive

NewAddPage provides the form to create a new task.

func NewEditPage

func NewEditPage(p *BoardPage, listIdx, taskIdx int) tview.Primitive

NewEditPage provides the form to edit an existing task.

func NewHelpPage

func NewHelpPage(p *BoardPage) tview.Primitive

NewHelpPage displays the help page that contains all the keybinds of the application

func NewInfoPage

func NewInfoPage(p *BoardPage, listIdx, taskIdx int) tview.Primitive

NewInfoPage displays the information about a task.

func Start

func Start(fileName string) error

Start runs the application

Types

type BoardPage

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

BoardPage contains all the information that the board page requires.

func NewBoardPage

func NewBoardPage(fileName string) *BoardPage

NewBoardPage adds the data to BoardPage structure.

func (*BoardPage) Page

func (p *BoardPage) Page() tview.Primitive

Page displays the contents of the board.

Jump to

Keyboard shortcuts

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