You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ADD] awesome_owl: implement counter, card components and todo list in playground.
- Created `Counter` component in playground.
- Extracted `Counter` component from playground into Counter component.
- Added `<Counter/>`in template of playground to add two counters.
- Created a card component and used t-esc and t-out directives to demonstrate the difference between escaped and safe HTML content using the markup function.
- Added props validation to the card component
- Implemented parent-child communication using a callback prop (onChange) from the Counter component to the Playground component, updating and displaying the sum in local state whenever counters are incremented.
- Built a TodoList with hardcoded todos using useState, rendered each using the TodoItem component with t-foreach, and added prop validation for todo.
- Updated TodoItem to conditionally apply Bootstrap classes (text-muted, text-decoration-line-through) using t-att-class based on the todo's completion status.
- Enabled dynamic todo creation: replaced hardcoded todos with useState([]), added input field for user to enter a task.
- Implemented addTask method to add new todos on Enter key (with unique ID and empty check).
0 commit comments