Nutrition Label (UK Version)

from Nutritionix
Back

Example 1

View Code

  • $('#label1').nutritionLabel({
    	showLegacyVersion : false,
    	showUKVersion : true,
    	showItemNameForUK : true,
    	showDailySugars : true,
    	valueServingWeightGrams : 77,
    
    	dailyValueTotalFat : 70, //this should be 70 for the uk version
    	dailyValueCarb : 260, //this should be 260 for the uk version
    	dailyValueSugar : 90, //this should be 90 for the uk version
    
    	textCalories : 'Energy',
    	textTotalCarb : 'Carbohydrate',
    	textFibers : 'Fibre',
    	textSodium : 'Salt',
    
    	allowCustomWidth : true,
    	allowNoBorder : true,
    	showServingUnitQuantity : false,
    	itemName : 'Bleu Cheese Dressing',
    	ingredientList : 'Bleu Cheese Dressing',
    
    	valueCalories : 450,
    	valueTotalFat : 48,
    	valueSatFat : 6,
    	valueSodium : 780,
    	valueTotalCarb : 3,
    	valueFibers : 0,
    	valueSugars : 3,
    	valueProteins : 3
    });
    
Back

Example 2

View Code

  • $('#label2').nutritionLabel({
    	showLegacyVersion : false,
    	showUKVersion : true,
    	showItemNameForUK : true,
    	showDailySugars : true,
    
    	dailyValueTotalFat : 70, //this should be 70 for the uk version
    	dailyValueCarb : 260, //this should be 260 for the uk version
    	dailyValueSugar : 90, //this should be 90 for the uk version
    
    	textCalories : 'Energy',
    	textTotalCarb : 'Carbohydrate',
    	textFibers : 'Fibre',
    	textSodium : 'Salt',
    
    	allowCustomWidth : true,
    	allowNoBorder : true,
    
    	valueServingWeightGrams : 32.56,
    	valueServingUnitQuantity : 0,
    	valueServingSizeUnit : 'DONUTS',
    
    	valueCalories : 400,
    	valueTotalFat : 24,
    	valueSatFat : 15,
    	valueSodium : 430,
    	valueTotalCarb : 44,
    	valueSugars : 24,
    	valueProteins : 4,
    
    	ingredientList : 'Enriched Bleached Wheat Flour (Bleached Flour, Malted Barley Flour)'
    });
    
Back

Example 3

View Code

  • $('#label3').nutritionLabel({
    	showLegacyVersion : false,
    	showUKVersion : true,
    	showItemNameForUK : true,
    	showDailySugars : true,
    
    	dailyValueTotalFat : 70, //this should be 70 for the uk version
    	dailyValueCarb : 260, //this should be 260 for the uk version
    	dailyValueSugar : 90, //this should be 90 for the uk version
    
    	textCalories : 'Energy',
    	textTotalCarb : 'Carbohydrate',
    	textFibers : 'Fibre',
    	textSodium : 'Salt',
    
    	allowCustomWidth : true,
    	allowNoBorder : true,
    
    	valueServingWeightGrams : 32.56,
    	showServingUnitQuantity : false,
    
    	valueServingUnitQuantity : 6,
    	valueServingSizeUnit : 'DONUTS',
    
    	valueCalories : 400,
    	valueTotalFat : 24,
    	valueSatFat : 15,
    	valueSodium : 430,
    	valueTotalCarb : 44,
    	valueSugars : 24,
    	valueProteins : 4,
    
    	ingredientList : 'Enriched Bleached Wheat Flour (Bleached Flour, Malted Barley Flour)'
    });
    
Back

Example 4

View Code

  • $('#label4').nutritionLabel({
    	showLegacyVersion : false,
    	showUKVersion : true,
    	showItemNameForUK : true,
    	showDailySugars : true,
    
    	dailyValueTotalFat : 70, //this should be 70 for the uk version
    	dailyValueCarb : 260, //this should be 260 for the uk version
    	dailyValueSugar : 90, //this should be 90 for the uk version
    
    	textCalories : 'Energy',
    	textTotalCarb : 'Carbohydrate',
    	textFibers : 'Fibre',
    	textSodium : 'Salt',
    
    	allowCustomWidth : true,
    	allowNoBorder : true,
    
    	valueServingWeightGrams : 32.56,
    	showItemName : false,
    
    	valueServingUnitQuantity : 0,
    	valueServingSizeUnit : 'DONUTS',
    
    	valueCalories : 400,
    	valueTotalFat : 24,
    	valueSatFat : 15,
    	valueSodium : 430,
    	valueTotalCarb : 44,
    	valueSugars : 24,
    	valueProteins : 4,
    
    	ingredientList : 'Enriched Bleached Wheat Flour (Bleached Flour, Malted Barley Flour)'
    });