edit

API

API

This is the API documentation for persian-datepicker

Kind: global class

apI.options

get current option object

Kind: instance property of API
Example

var pd = $('.selector').persianDatepicker();
console.log(pd.options);

apI.options

set options live

Kind: instance property of API
Example

var pd = $('.selector').persianDatepicker();
pd.options;
//return current options
pd.options = {};
// set options and render datepicker with new options

apI.show()

make datepicker visible

Kind: instance method of API
Example

var pd = $('.selector').persianDatepicker();
pd.show();

apI.getState()

return datepicker current state

Kind: instance method of API
Since: 1.0.0
Example

var pd = $('.selector').persianDatepicker();
var state = pd.getState();

console.log(state.selected);
console.log(state.view);

apI.hide()

make datepicker invisible

Kind: instance method of API
Example

var pd = $('.selector').persianDatepicker();
pd.show();

apI.toggle()

toggle datepicker visibility state

Kind: instance method of API
Example

var pd = $('.selector').persianDatepicker();
pd.toggle();

apI.destroy()

destroy every thing clean dom and

Kind: instance method of API
Example

var pd = $('.selector').persianDatepicker();
pd.destroy();

apI.setDate(unix)

set selected date of datepicker accept unix timestamp

Kind: instance method of API

Param
unix

Example

var pd = $('.selector').persianDatepicker();
pd.setDate(1382276091100)