Skip to content

Simple iOS-style calendar plugin for jQuery Mobile for both showing activities or picking dates

License

Notifications You must be signed in to change notification settings

mattrq/jqm-calendar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jqm-calendar

Simple iOS-style calendar plugin for jQuery Mobile for both showing activities or picking dates.

$("#calendar").jqmCalendar({
   events : [ { "summary" : "Test event", "begin" : new Date(), "end" : new Date() } ],
   months : ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
   days : ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
   startOfWeek : 0
}); 

(PLease note that all properties of the settings objects are optional, and the values above, except for the events, are defaults!)

Listen to changes via the event:

$("#calendar").bind('change', function(event, date) {
   console.log(date);
});

Change the current month by calling refresh:

$("#calendar").trigger('refresh', new Date("2013-01-01"))

About

Simple iOS-style calendar plugin for jQuery Mobile for both showing activities or picking dates

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.2%
  • CSS 17.8%