Custom setup

datedropper 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.



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":[LANGUANGE NAME (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;