Skip to content

Instantly share code, notes, and snippets.

@pusewicz
Last active September 12, 2022 14:09
Show Gist options
  • Save pusewicz/3316008edf877c301a329e43d72ac3b1 to your computer and use it in GitHub Desktop.
Save pusewicz/3316008edf877c301a329e43d72ac3b1 to your computer and use it in GitHub Desktop.
Step 3: Adding the timer element on screen
<div class="view">
<input class="toggle" type="checkbox" v-model="todo.completed">
<label @dblclick="editTodo(todo)">
{{ todo.title }}
+ <div class="harvest-timer" :id="todo.id"
+ :data-item="`${JSON.stringify({ id: todo.id, name: todo.title })}`"
+ :data-group="`${JSON.stringify({ id: 1, name: 'TodoMVC' })}`"
+ >
+ </div>
</label>
<button class="destroy" @click="removeTodo(todo)"></button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment