Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Todos *models.TodoList view.DefaultView // contains filtered or unexported fields }
App is the main view for the application.
func (*App) ClearCompleted ¶
ClearCompleted is an event listener which removes all the completed todos from the list.
func (*App) CreateTodo ¶
CreateTodo is an event listener which creates a new todo and adds it to the todo list.
type Todo ¶
type Todo struct { Model *models.Todo view.DefaultView // contains filtered or unexported fields }
Todo is a view for a single todo item.
func (*Todo) CancelEdit ¶
CancelEdit resets the title of the todo to its old value. It does not commit the edit. After the edit has been canceled, the todo is no longer in the editing state.
func (*Todo) CommitEdit ¶
CommitEdit sets the title of the todo to the new title. After the edit has been committed, the todo is no longer in the editing state.
func (*Todo) Edit ¶
Edit puts the Todo view into an editing state, changing it's appearance and allowing it to be edited.