A simple mini calendar component.
The component uses the polymer library.
To use it :
bower install zdk-calendar -S
and include in your html header :
<script src="/bower_components/platform/platform.js"></script>
<link rel="import" href="/bower_components/zdk-calendar/zdk-calendar.htm">
then to use it, insert in the body of your html file :
<zdk-calendar></zdkcalendar>
the component expose the following attributes :
- i18n : The language setting for the calendar
- date : The date of the calendar ( by default today )
the component emits one event : "select" when clicking on a date. The event come with the following object :
{
"day": "15/05/2014", // A string represenation of the selected date in the selected language setting
"time": 1400104800000 // the timestamp of the selected date
}