nutritionix / nutrition-label

Create a FDA-style nutrition label with any nutrition data source (even the Nutritionix API - http://www.nutritionix.com/api)
http://www.nutritionix.com/
MIT License
176 stars 66 forks source link

Option for not doing calculations #72

Closed JCapriotti closed 7 years ago

JCapriotti commented 7 years ago

I am wondering if there is a way to disable calculations done inside the widget (e.g. for % daily value), and instead only display values provided to the label widget? Or if not, would this be a useful feature?

We may have a need for this, so may work on it at some point.

Thanks, Jason

majin22 commented 7 years ago

@JCapriotti currently, we don't have that feature but you can simply hide the arrows and then add a small javascript code to prevent the changes on the textbox being triggered (I haven't tried it though) http://dev2.nutritionix.com/html/label-jquery-plugin/demo/legacy-version/demo.html#test17

good luck