Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Add items
- function handleNewItemSubmit() {
- // this function will be responsible for when users add a new shopping list item
- //When the user adds an item to the list via the input .shopping-list-entry, add that item to the store, generate a unique id, and display it.
- console.log('`handleNewItemSubmit` ran');
- }
- 2. Checked items
- function handleItemCheckClicked() {
- // this function will be responsible for when users click the "check" button on
- // a shopping list item.
- //When the shopping-item-toggle button is clicked change the class of the li element to .shopping-item__checked
- console.log('`handleItemCheckClicked` ran');
- }
- 3. Delete items
- function handleDeleteItemClicked() {
- // this function will be responsible for when users want to delete a shopping list
- // item
- //When the delete-item button is clicked, remove the li element from the ul.
- console.log('`handleDeleteItemClicked` ran')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement