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', null
Using 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.

hide()

Accepts: null
Calling this function will hide the scheduler using a display:none style.

show()

Accepts: null
Calling this function will show the scheduler up again.

date()

Accepts: valid Date, null
Calling 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', null
Calling 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.

viewMode()

Accepts: 'days', 'months', 'list', null
Calling 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.