Options
locale
Default: 'en'Set the default
Accepts: 'en', 'fr'
locale to use. Actually you can only choose between 'en' and 'fr'.See momentjs for valid locales.
Note: the momentjs file must contain the
locale you want to use.defaultDisplay
Default: 'months'Defines which
Accepts: 'months', 'days', 'list'
display mode must be used on initialization.hideEmptyLines
Default: trueWith this option activated, the lines with no
task will automatically be hidden.disableLabelsMovement
Default: falseBy default, the
tasks label will move on scroll to stay on the screen. You can use this option to disable this feature.defaultGroupName
Default: 'unlisted'Defines a default
group name. Note that the default value will be translated depending on the current locale.defaultDate
Default: The current dateSets the starting
date.defaultColor
Default: #00BCD4Defines a
default color for the tasks and some UI elements.disableNotifications
Default: falseDisables
notifications.notificationDuration
Default: 4000Sets the
notifications duration (in ms).hideSpinner
Default: trueHides the
preloader.Note: The
preloader will appears on each page change. You may only use it if you have to work with a lot of data or using Ajax requests.disableUndo
Default: falseThe
undo option is a little bit particular: On each modification, you'll be notified with a link that allows you to revert what you just have done. Be careful if you are using events options (see the events page). The callback functions will only be called after the
notification disappearance to let you have a few seconds of hesitation.
Note: this option requires the
notifications to be enabled!resizeTask
Default: falseYou can turn off the
tasks resizing with this option.
tasks
Default: Array of ObjectsUse this option to define
tasks that will be displayed into the scheduler.Take a look at the options bellow. Each
task is an object.Note: What about setting a function as argument to this option and get the
tasks using ajax? Yes! You can!task: id*
Requires: StringEach defined
tasks must be set with a unique ID.task: name*
Requires: StringEach defined
tasks must be set with a unique name.task: description
Accepts: StringYou can set descriptions for each
task using this option. However, this is not required.task: color
Accepts: All colors definition typesIf you don't define this option, the task will either use the
defaultColor option, either the #00BCD4 color (if the defaultColor option is not defined).task: tag
Accepts: StringDefines a
tag for the taskNote: Tags are meant to be used with short sentences of one or two words max.
task: tagColor
Accepts: All colors definition typesDefines a background-color for the
task tag.users
Accepts: Array of objectsYou can add
users using this option. Take a look at the options below to learn more about the required options.
user: name*
Requires: StringDefines the
user name. This option is required.user: group
Accepts: StringDefines the
user group name.Note: All the
users with a matching group name will be sorted together.user: tasks
Accepts: Array of objectsDefines the
user tasks. Each task must be composed of the following elements:- an
id: (String) refers to thetaskit is about (defined in thetasks options) - a
start_date: (valid Date) The beginning of thetask - a
end_date: (valid Date) The end of thetask
/* ... */
tasks: [
{
id: 'dlaJ-S76-sk2',
start_date: '2016-08-07 13:45',
end_date: '2016-08-15 18:00'
}
]
/* ... */