Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. 1. Add items
  2. function handleNewItemSubmit() {
  3. // this function will be responsible for when users add a new shopping list item
  4. //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.
  5. console.log('`handleNewItemSubmit` ran');
  6. }
  7.  
  8. 2. Checked items
  9. function handleItemCheckClicked() {
  10. // this function will be responsible for when users click the "check" button on
  11. // a shopping list item.
  12.  
  13. //When the shopping-item-toggle button is clicked change the class of the li element to .shopping-item__checked
  14. console.log('`handleItemCheckClicked` ran');
  15. }
  16.  
  17. 3. Delete items
  18. function handleDeleteItemClicked() {
  19. // this function will be responsible for when users want to delete a shopping list
  20. // item
  21.  
  22. //When the delete-item button is clicked, remove the li element from the ul.
  23. console.log('`handleDeleteItemClicked` ran')
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement