actions

package
v0.0.0-...-3654578 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddItem

type AddItem struct {
	Title string
}

AddItem is an action which adds a single item with the specified title.

type ClearCompleted

type ClearCompleted struct{}

ClearCompleted is an action which clears the completed items.

type DestroyItem

type DestroyItem struct {
	Index int
}

DestroyItem is an action which destroys the item specified by the index.

type ReplaceItems

type ReplaceItems struct {
	Items []*model.Item
}

ReplaceItems is an action that replaces all items with the specified ones.

type SetAllCompleted

type SetAllCompleted struct {
	Completed bool
}

SetAllCompleted is an action which marks all existing items as being completed or not.

type SetCompleted

type SetCompleted struct {
	Index     int
	Completed bool
}

SetCompleted is an action which specifies the completed state of an existing item.

type SetFilter

type SetFilter struct {
	Filter model.FilterState
}

SetFilter is an action which sets the filter for the viewed items.

type SetTitle

type SetTitle struct {
	Index int
	Title string
}

SetTitle is an action which specifies the title of an existing item.

Jump to

Keyboard shortcuts

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