Extends
- Backbone.View
Methods
dateBack()
Add a day to the current date
- Source:
dateDisplay()
Tracker display options
- Source:
dateForward()
Subtract a day from the current date
- Source:
deleteFood()
Delete food model using id
- Source:
initDatePicker()
Activate the date picker plugin
- Source:
initialize()
Setup Helpers, DOM ref, listener, datepicker, and fetch collection from localStorage
- Source:
openFood()
Open nutrition view and style row in the tracker table
- Source:
render()
Check which render to run and update url route if in tracker view
- Source:
renderAll()
Render all
- Source:
renderDate()
Render the tracker collection by date
- Source:
setOption()
Set tracker display option and re-render view
- Source:
show()
Show nutrition value by number of servings
- Source:
sumCals()
Sum of calories
- Source:
sumCarbs()
Sum of carbs
- Source:
sumFat()
Sum of fats
- Source:
sumProt()
Sum of proteins
- Source:
title()
Display date tooltip if displayAll option is true
- Source: