A polymer datetime-local component
Install the component using Bower:
$ bower install greenyouse-datetime-local-input --saveOr download as ZIP.
-
Import polyfill:
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
-
Import custom element:
<link rel="import" href="bower_components/datetime-local-input/datetime-local-input.html">
-
Start using it!
<datetime-local-input></datetime-local-input>
| Attribute | Options | Default | Description |
|---|---|---|---|
errorMessage |
string | Please provide a full date |
An error message for when validation fails |
label |
string | Date |
The input label |
value |
string | the current time | The datetime-local time |
| Method | Parameters | Returns | Description |
|---|---|---|---|
validate() |
None. | Boolean | Checks that the input value is a datetime-local time. |
In order to run it locally you'll need to fetch some dependencies and a basic server setup.
-
$ npm install -g bower polyserve
-
Install local dependencies:
$ bower install
-
Start development server and open
http://localhost:8080/components/my-repo/.$ polyserve
For detailed changelog, check Releases.
There are a few issues that could use some help. Take a look at the issues for more.