Language

While initializing you can set up the label's text for the labels and text.

Following options are available for customization.

   LABEL_PRINICIPAL : "Loan Amount",
   CALCULATOR_HEADING : "EMI Calculator for Loans",
   LABEL_RATE : "Loan Rate",
   LABEL_TIME : "Loan Tenure",
   RESULTS_EMI_HEADING : "Loan EMI",
   RESULTS_INTEREST_PAYABLE_HEADING : "Total Interest Payable",
   RESULTS_TOTAL_PAYABLE_HEADING : "Total Payment",
   BREAKDOWN_TABLE_HEADING : "Monthly breakdown of EMI in <b>Principal</b> and <b>Interest</b> components",
   PRINCIPAL_ERROR : "The loan amount value is larger than the  allowed value. Max value is ... ",
   RATE_ERROR : "The loan rate  value is larger than the allowed value. Max value is ... ",
   TIME_ERROR : "The loan tenure   is longer than the allowed value. Max value is ..."

Example Initialization for customizing label texts

// set the language text as shown below. It will 
// override default values

$(document).ready(function(){ 
	$(".emic-calculator").emiculator({
		language : {
			LABEL_PRINICIPAL : "Your Loan Amount is ",
			CALCULATOR_HEADING : "EMI Calculator for Home Loans ",
			LABEL_RATE : "Your Loan Rate",
            LABEL_TIME : "Your Loan Tenure",
		}
	}); 
})

Last updated