todo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddView

type AddView struct {
	view.Embed

	OnAdd func(title string)
	// contains filtered or unexported fields
}

func NewAddView

func NewAddView(ctx *view.Context, key string) *AddView

func (*AddView) Build

func (v *AddView) Build(ctx *view.Context) view.Model

type AppView

type AppView struct {
	view.Embed
	Todos []*Todo
}

func NewAppView

func NewAppView(ctx *view.Context, key string) *AppView

func (*AppView) Build

func (v *AppView) Build(ctx *view.Context) view.Model

func (*AppView) StackBar

func (v *AppView) StackBar(ctx *view.Context) *stackview.Bar

type Checkbox

type Checkbox struct {
	view.Embed
	Value         bool
	OnValueChange func(value bool)
}

func NewCheckbox

func NewCheckbox(ctx *view.Context, key string) *Checkbox

func (*Checkbox) Build

func (v *Checkbox) Build(ctx *view.Context) view.Model

type DeleteButton

type DeleteButton struct {
	view.Embed
	OnPress func()
}

func NewDeleteButton

func NewDeleteButton(ctx *view.Context, key string) *DeleteButton

func (*DeleteButton) Build

func (v *DeleteButton) Build(ctx *view.Context) view.Model

type Todo

type Todo struct {
	Title     string
	Completed bool
}

type TodoView

type TodoView struct {
	view.Embed
	Todo       *Todo
	OnDelete   func()
	OnComplete func(check bool)
}

func NewTodoView

func NewTodoView(ctx *view.Context, key string) *TodoView

func (*TodoView) Build

func (v *TodoView) Build(ctx *view.Context) view.Model

Jump to

Keyboard shortcuts

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