Finding Community Tasks
Part of the Fundamentals section of Coddy's Vue journey. Lesson 54 of 55.
Keep all earlier features. Add input#search for case-insensitive title substring search, ignoring edge whitespace, and checkbox #only-open, initially unchecked. Show only records matching both active filters. Use a computed visible list without deleting source records. The summary always counts the entire source list, not just matches. Show No tasks to show in p#empty when the visible list is empty. Clearing search or unchecking the filter restores matching source tasks. A task completed under the open-only filter disappears from that view.
Challenge
HardKeep all earlier features. Add input#search for case-insensitive title substring search, ignoring edge whitespace, and checkbox #only-open, initially unchecked. Show only records matching both active filters. Use a computed visible list without deleting source records. The summary always counts the entire source list, not just matches. Show No tasks to show in p#empty when the visible list is empty. Clearing search or unchecking the filter restores matching source tasks. A task completed under the open-only filter disappears from that view.
Try it yourself
<!doctype html><html><head><meta charset="UTF-8"><title>Vue practice</title></head><body><div id="app"></div><script type="module" src="./main.js"></script></body></html>This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Fundamentals
2Reactive State
Reactive RefsUpdating Refs in ScriptEvent Handler ArgumentsReactive ObjectsRecap: Reactive State5Conditions and Lists
Conditional BranchesShow without UnmountingRendering ListsStable List IdentityRecap: Conditions8Component Communication
Emitting EventsEvent PayloadsLifting Shared StateDefault and Named SlotsRecap: Shared Panel11Project: Community Board
Board StructureAdding Community Tasks