mirror of https://github.com/wekan/wekan
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.5 KiB
58 lines
1.5 KiB
![]()
2 years ago
|
[FullCalendar](http://fullcalendar.io/) JQuery plugin packaged for Meteor 1.0
|
||
|
|
||
|
### Instalation ###
|
||
|
|
||
|
meteor add rzymek:fullcalendar
|
||
|
|
||
|
### Usage ###
|
||
|
|
||
|
{{> fullcalendar }}
|
||
|
|
||
|
Options to FullCalendar can be passed as attributes:
|
||
|
|
||
|
{{> fullcalendar defaultView='agendaWeek'}}
|
||
|
|
||
|
If you want to have options defined in JS (or have them reactive), you can do:
|
||
|
|
||
|
<template name="example">
|
||
|
{{>fullcalendar options}}
|
||
|
</template>
|
||
|
|
||
|
Template.example.helpers({
|
||
|
options: function() {
|
||
|
return {
|
||
|
defaultView: 'basicWeek'
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
|
||
|
To access the `.fullcalendar` method assign an `id` or a `class` first
|
||
|
|
||
|
{{> fullcalendar id="myCalendar" ...}}
|
||
|
|
||
|
Then you can for example do
|
||
|
|
||
|
$('#myCalendar').fullCalendar('refetchEvents');
|
||
|
|
||
|
### Updating fullcalendar ###
|
||
|
|
||
|
To update fullcalendar version run
|
||
|
|
||
|
./update.sh
|
||
|
This will update to the newest fullcalendar's tag.
|
||
|
To update to a specific version do
|
||
|
|
||
|
./update.sh 2.2.6
|
||
|
|
||
|
If you want me to publish a new package version just [create an issue](https://github.com/rzymek/meteor-fullcalendar/issues/new).
|
||
|
In case you can't wait to use a new fullcalendar version in your project, you can update the package locally:
|
||
|
|
||
|
cd your_meteor_project
|
||
|
mkdir -p packages
|
||
|
git clone https://github.com/rzymek/meteor-fullcalendar packages/rzymek:fullcalendar
|
||
|
./packages/rzymek:fullcalendar/update.sh
|
||
|
|
||
|
After the desired version gets published just remove the local package:
|
||
|
|
||
|
rm -r packages/rzymek:fullcalendar
|