A timeline to display dates

[ This description is mirrored from README.md at github.com/vladimirbrasil/a-timeline on 2019-05-10 ]

Published on webcomponents.org Build Status Coverage Status

<a-timeline>

Description

<a-timeline> plots your dates.

<a-timeline id="demo"></a-timeline>
<script>
  const datetimes = ['2017-08-11T14:17', '2017-08-07T16:00','2017-08-23T15:22', '2017-09-13T14:48'];
  document.getElementById('demo').datetimes = datetimes;
</script>

Usage

<a-timeline> accepts an array of datetimes.

<a-timeline datetimes="[[datetimes]]"></a-timeline>
const datetimes = ['2017-08-11T14:17', '2017-08-07T16:00','2017-08-23T15:22', '2017-09-13T14:48'];

Edit <a-timeline> color using --timeline-color style.

<style>
  a-timeline { 
    --timeline-color: green; 
    --timeline-text-color: grey; 
  }
</style>

Big Thanks

Logo

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

September 22th

First version.

Credits

Vladimir Bergier Dietrichkeit

License

This software is licensed under the MIT License, quoted below.

MIT License

Copyright (c) 2017 Vladimir Bergier

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
readme

Install

Link to this version
ImportedReleased 03 January 2018MIT License
Framework Support
Polymer 2.0+
Browser Compatibility
Install with
bower install --save vladimirbrasil/a-timeline"#0.1.2"
Run the above Bower command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 0.1.2

Dependencies

  • polymer#Polymer/polymer#^2.0.0