Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function generateItemElement(item) {
- return `
- <li class="js-item-index-element" data-item-index="${item.id}">
- <span class="shopping-item js-shopping-item ${item.checked ? 'shopping-item__checked' : ''}">${item.name}</span>
- <div class="shopping-item-controls">
- <button class="shopping-item-toggle js-item-toggle">
- <span class="button-label">check</span>
- </button>
- <button class="shopping-item-delete js-item-delete">
- <span class="button-label">delete</span>
- </button>
- <button class="shopping-item-edit js-item-edit">
- <span class="button-label">edit</span>
- </button>
- </div>
- </li>`;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement