A Polymer 2.0 based collection of reusable web components
Install the Polymer-CLI
First, make sure you have the Polymer CLI installed. Then run
polymer serve to serve your application locally.
PF Calendar Events
An Advanced/composite Polymer 2.0 based custom elements that can be used to set Events/appointments/meetings in a calendar.
|Element Name||Latest Version (Bower)||Npm version||Build Status|
See the list of elements, demos, and documentation by browsing this collection on webcomponents.org:
Customization and usage
<pf-calendar-events></pf-calendar-events> can be customized in a number of ways
Customization of look and feel
By default you have two general options
Once you decide you general look and feel then you can further customize the details, e.g. if you chose a Material Design look and feel and you want to change the width, hight, color etc. you can do that with the provided API.
Material Calendar Example
Classic Calendar Example
default value of 'calendarstyle' is 'material-calendar'
Types of calendar
You can define different types of calendar events (appointments, meetings, reminders, etc). e.g. you can define a "Sports" Calendar "Office Meeting" calendar, "Birthday Reminders" calendar. Distinct type of categories will appear in different colors.
Buttons / icons are provided to enable Adding, deleting or updating an event (meeting, reminder, appointment etc) Material based button and icons are provided to enable these operations. For firebase events data, please see our firebase element
Customization of Calendar Events/Data (your meetings, appointments, reminders etc)
Of course if you cannot provide you own data then why even use a third party component, and you need events as well to notify you of the user interaction with the calendar
This custom element provides you two generic ways that again can be further customized
a. Data Through firebase custom element (Please see our firebase custom element that can be combined with this element to enable your data interaction from firebase
b. By providing an array of data. (Calendar events, appointments, meetings, reminders etc.)
Our custom element provides a way to hook your CRUD operations into our calendar, it provides a number of API hooks/events to notify you about an operation that is performed on a certain event.
||Add event retuns current selected date ('e.detail.date'), fired when user press add event button|
||Edit event retuns event ('e.detail.event'),fired when user press edit event button|
||Delete event retuns event ('e.detail.event'),fired when user press delete event button|
||Event Select retuns event ('e.detail.event'),fired when user click on any event|
||Date Select retuns seleted date and events of date ('e.detail.date'and'e.detail.events'),fired when user click on any event|
||Calendar Header Background||rgba(66, 66, 66, 1)|
||Calendar Header height||50px|
||Font size of month on header||20px|
||Calendar Header title line Height||rgba(66, 66, 66, 1)|
||Previous Month arrow color||rgba(160, 159, 160, 1)|
||Next Month arrow color||rgba(160, 159, 160, 1)|
||Month Title color||#000|
||Background color of week||#4A4A4A|
||color of date||#000|
||color of previous and next month date||rgba(255, 255, 255, .3)|
||Current date Color||rgba(156` 202, 235, 1)|
||Name of Day color e.g(MON,TUE,WED)||rgba(255` 255, 255, .5)|
||Event box background||rgba(164, 164, 164, 1)|
||color of label "Event"||#000|
|`--pf-calendar-addevent-button-bg-color'||Add Event Button color||rgba(164, 164, 164, 1)|
||Add Event text color||#fff|
||Add event button hover color||rgba(170, 170, 170, 1)|
||to hide button set "none"||inline-block|
||to hide button set "none"||inline|
||to hide button set "none"||inline|
||Background color of legend bar||rgba(60, 60, 60, 1)|
Viewing Your Application
$ polymer serve
Building Your Application
$ polymer build
This will create a
build/ folder with
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
CSS, and JS optimizers.
You can serve the built versions by giving
polymer serve a folder to serve
$ polymer serve build/bundled
$ polymer test
Your application is already set up to be tested via web-component-tester. Run
polymer test to run your application's test suite locally.
Comments, questions, suggestions, issues, and pull requests are all welcome.
Get in touch with the team
Some ways to help:
- Test the elements and provide feedback: We would love to hear your feedback on anything related to the elements, like features, API and design. The best way to start is by trying them out. And to get a quick response, either drop a question/comment on the chat or open an issue in GitHub.
- Report bugs: File issues for the elements in their respective GitHub projects.
- Send pull requests: If you want to contribute code, check out the development instructions below.
We encourage you to read the contribution instructions by GitHub also.