My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 81: query API for current date
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  adamrs...@gmail.com
Closed:  Dec 2009


Sign in to add a comment
 
Project Member Reported by adamrs...@gmail.com, Aug 17, 2009
should be able to call something like $('#calendar').fullCalendar('getRange') 
or something like that to get the first/last date displayed on the calendar. 
1.3 should have this
Aug 17, 2009
Project Member #1 adamrs...@gmail.com
in the meantime, you can make a callback for monthDisplay (see http://arshaw.com/fullcalendar/docs/#triggered-actions) and have that function update 
your own variables for the current month/year;
Aug 30, 2009
#2 thgre...@gmail.com
I needed to do the same thing so I oppend fullcalendar.js
and right below getEventsById (about line 220) I added:

getstart: function() {
	return start;
},
getend: function() {
	return end;
},

Now you can call something like this $('#calendar').fullCalendar('getstart');
Aug 30, 2009
Project Member #3 adamrs...@gmail.com
sweet, thanks thgreasi, this should hold people over til the next release, which will 
be around the end of this week
Nov 10, 2009
Project Member #4 adamrs...@gmail.com
 Issue 170  has been merged into this issue.
Nov 10, 2009
Project Member #5 adamrs...@gmail.com
in the next release (for real this time), will have a 'viewInfo' method where you can
easily get all the info you'd ever want about the current view. will return a 'view'
object (http://arshaw.com/fullcalendar/docs/triggered-actions.php#view-object)

thanks
Dec 2, 2009
Project Member #6 adamrs...@gmail.com
alright, this is possible in 1.4.2 (just released). thanks for the wait

- use `getDate` to get a Date object
- use `getView` to get even more info
http://arshaw.com/fullcalendar/docs/methods.php#methods
Status: Done
Sign in to add a comment

Powered by Google Project Hosting