todo

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const HelpText = `` /* 472-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Checked bool
	Text    string
}

func (*Item) CheckMark

func (item *Item) CheckMark() string

func (*Item) Toggle

func (item *Item) Toggle()

type List

type List struct {
	Items []*Item
	// contains filtered or unexported fields
}

func (*List) Add

func (list *List) Add(text string)

func (*List) CheckedItems added in v0.0.4

func (list *List) CheckedItems() []*Item

func (*List) Delete

func (list *List) Delete()

func (*List) Demote

func (list *List) Demote()

func (*List) Len

func (list *List) Len() int

func (*List) Less

func (list *List) Less(i, j int) bool

func (*List) LongestLine added in v0.0.4

func (list *List) LongestLine() int

func (*List) Next

func (list *List) Next()

func (*List) Prev

func (list *List) Prev()

func (*List) Promote

func (list *List) Promote()

func (*List) Selected

func (list *List) Selected() *Item

func (*List) SetSelectedByItem added in v0.0.4

func (list *List) SetSelectedByItem(selectableItem *Item)

func (*List) Swap

func (list *List) Swap(i, j int)

func (*List) Toggle

func (list *List) Toggle()

Toggle switches the checked state of the currently-selected item

func (*List) UncheckedItems added in v0.0.4

func (list *List) UncheckedItems() []*Item

func (*List) Unselect

func (list *List) Unselect()

func (*List) Update

func (list *List) Update(text string)

type Widget

type Widget struct {
	wtf.TextWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(app *tview.Application, pages *tview.Pages) *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

func (*Widget) SetList added in v0.0.4

func (widget *Widget) SetList(newList *List)

Jump to

Keyboard shortcuts

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