| Issue 2343: | gotoDate do not take into account calendar.options.firstDay in 2.1.1 | |
| 1 person starred this issue and may be notified of changes. | Back to list |
firstDay was working with this method in 1.6.3 but not in 2.1.1
Steps:
1- setting firstDay using:
$('#calendar').fullCalendar('getView').calendar.options.firstDay = n;
2 - And then moving to a specific date:
$('#calendar').fullCalendar('gotoDate, new Date());
Expected:
Calendar moves to the new date, rendering the calendar with the firstDay set in step1.
Plunker with version 1.6.3 Working.
http://plnkr.co/edit/Onw9wb?p=preview
Plunker with version 2.1.1 NOT working.
http://plnkr.co/edit/9QkiNK?p=preview
Differences on code:
- Dependency on moment.js
- Receiving a moment instead of a date at fullCalendar('getDate')
Nov 25, 2014
The method you were using in 1.x was non-standard and doesn't work in 2.x.
Ideally you'd like to use the .fullCalendar('option', '<name>', '<value>') method, but sadly this does not work with every option.
Please star issue 293 , which deals with programmatically setting *any* option.
In the meantime you'll have to destroy/re-initialize your calendar with the new option to get it to work.
Status:
Done
|
|
| ► Sign in to add a comment |
Labels: Type-Bug