Skip to content

nidheeshdas/zdk-calendar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zdk-calendar

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
}   

About

A calendar web component for polymer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 100.0%