Directory

← Back

paper-timezone

Polymer based timezone selection component

Author

Rating

Popularity

<100

[ This description is mirrored from README.md at github.com/bluewatertracks/paper-timezone on 2019-05-22 ]

Published on webcomponents.org

paper-timezone

About

paper-timezone is a Polymer based web component used for interactively selecting a timezone locale from a map. On smaller screens, the component resizes itself to a dropdown with the ability to let the user select the locale from the dropdown list. It is heavily inspired by the world map on the momentjs site; it in fact is a rewrite of the same in Polymer although with a lot more added features.

We at Blue Water Tracks use it on our portal pages and we wanted to open source the component to share it with the Polymer community. Demos and documentation can be found here

Sample screenshot

Screenshot in mobile view

bwt-datatable mobile view

Features

  • Full compatibility with Polymer 2!
  • Extremely simple to set up.
  • Support for desktop and mobile mode using the responsive-width property.
  • Moment compatible object {location: "Asia/Bangkok", offset: 420}
  • Support for offset in minutes or hours.
  • Support for custom styling.

Installation

The element can be installed using bower using

bower install --save paper-timezone

Usage

  • Following code is required to place in the polymer web component.
    <paper-timezone  name="timezone" timezone="[[timezone]]" label="Timezone (Continent/City)" error-message="Please enter a timezone offset"></paper-timezone>

Reporting Bugs

When filing a bug report, please provide an example of how to reproduce using plunker, jsbin, jsfiddle, etc.

Testing

To run the tests go to the component directory and run.

    polymer test

License

This project is licensed under the terms of the MIT license.

Contributing

We absolutely love sending us new pull requests, so let us just outline some advice:

  1. If you have an idea for a feature that you would like to be added or have a pull request for one, create an issue and we will have a look at it and let you know if we can support it.
  2. You have to explicitly agree in your pull request to the terms described in the fair share license construction.

Contributors

@bhargavkonkathi Programming is like playing chess; each line is as important as each step to determine what kind of player or programmer you are. When ever not playing chess, it's Javascript, Java and mongodb.
@maisnamraju Javascript Ninja; saving the world with one line of javascript at a time. ;)
@dhrytsenko What is my opinion about JavaScript, NodeJS, MongoDB and Polymer? Building blocks to the future! Allowing me to help make the world a better place.

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

  • polymer#Polymer/polymer#^2.0.0
  • paper-dialog#^2.0.0
  • paper-input#^2.0.2
  • paper-item#^2.0.0
  • iron-media-query#^2.0.0
  • moment#^2.19.1
  • moment-timezone#^0.5.13
  • paper-dropdown-menu#^2.0.0
  • paper-listbox#^2.0.0
  • webcomponentsjs#^1.0.17
  • paper-material#^2.0.0
Released
2018-03-21
Maturity
IMPORTED
License
MIT License

Compatibility

Framework
Polymer 2.0+
Polymer 1.0+ in 1.0.0
Browser
Browser Independent

Vaadin Add-on Directory

Find open-source widgets, add-ons, themes, and integrations for your Vaadin application. Vaadin Add-on Directory
The channel for finding, promoting, and distributing Vaadin add-ons.
Online