Skip to content

Commit

Permalink
demo: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
indongyoo committed Apr 1, 2024
1 parent cfecabd commit 8d965c6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions demo/src/app/Meetup/TodoPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@ class TodoPage extends View<Todo[]> {
this.addEventListener(InputTextReturned, (e: InputTextReturned) => this._append(e.detail));
this.addEventListener(Toggled, () => this.redraw());
this.addEventListener(SegmentSelected, () => this.redraw());
this.delegate(RemoveRequested, TodoItemView, (_, todoItemView: TodoItemView) => {
this._remove(todoItemView.data);
});
this.delegate(
RemoveRequested,
TodoItemView,
(e: RemoveRequested, todoItemView: TodoItemView) => {
this._remove(todoItemView.data);
},
);
}

private _append(title: string) {
Expand Down

0 comments on commit 8d965c6

Please sign in to comment.