Functions
The default functions below can be called after having declared the scheduler and let you access to some useful features.
Follow this pattern to use them:$.fn.pitScheduler.default().functionName();
options()
Accepts: 'users', 'tasks', nullUsing this function with no parameters will return the whole settings variable that contains the major part of the data used into the
scheduler.However, you can use the arguments 'users' or 'tasks' to only request
users or tasks data. Note: 'Settings' is an object that contains not only the main data but also all the data required to make the
scheduler works. These data will probably be of no use to you. hide()
Accepts: nullCalling this function will hide the
scheduler using a display:none style. show()
Accepts: nullCalling this function will show the
scheduler up again. date()
Accepts: valid Date, nullCalling this function with no argument will return the current
date used by the scheduler.If you want to set a new
date, simply call this function with the new one as argument.locale()
Accepts: 'en', 'fr', nullCalling this function with no argument will return the current
locale used by the scheduler.You can also use this function to set a new
locale by passing it as argument.Note: Before doing anything, be sure that the
locale exist and has been correctly defined!viewMode()
Accepts: 'days', 'months', 'list', nullCalling this function with no argument returns the current
viewMode used by the scheduler.You can also use this function to set a new
viewMode by passing it as argument. It will automatically update the scheduler.