edit

API

API

This is default API class

Kind: global class

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