Customize your datedropper setup

datedropper Pro offers you the ability to customize any default options by extending the $.dateDropperSetup variable object.

The $.dateDropperSetup object has to be extended as follows:

$.extend($.dateDropperSetup.[OPTION NAME],[CUSTOM VALUE]);

Take a look at the available options.

Available options
languages
autoInit
icons

languages

This option allows you to add or change any languages. The value of the languages object has to be provided as follows:

$.extend($.dateDropperSetup.languages,{
[language_key(string)] : {
name : [language_label(string)],
months : {
short: array,
full : array
},
weekdays : {
short : array,
full : array
}
}
});

Example

$.extend($.dateDropperSetup.languages,{
'en' : {
name : 'English',
months : {
short: [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'June',
'July',
'Aug',
'Sept',
'Oct',
'Nov',
'Dec'
],
full : [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
]
},
weekdays : {
short : [
'S',
'M',
'T',
'W',
'T',
'F',
'S'
],
full : [
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday'
]
}
}
});

autoInit

This option allows you to disable the initialization by default class or attribute. The value of the autoInit variable has to be provided as follows:

$.dateDropperSetup.autoInit = false;

Related articles