Skip to content

toshovski/alto-timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org

<alto-timeline>

<alto-timeline time="09:00 - 10:00" title="Speaker One" icon="icons:book" status="done">Here is some cool
        description
    </alto-timeline>
    <alto-timeline time="10:00 - 11:00" title="Speaker Two" icon="icons:announcement" status="done"> Some text with
        <br/> a breakline to see the border in action
    </alto-timeline>
    <alto-timeline time="11:00 - 12:00" title="Speaker Three" icon="icons:build" status="progress"> Here is also a lnk:
        <a href="https://google.com">Go to Google</a></alto-timeline>

alto-timeline is an element which visualizes timelines. See the demo on the webcomponents.org website.

'alto-timeline' contains the following parameters:

  • title: The title is shown on the left of the timeline and it is capitalized
  • icon: icon, shown inside the timeline circle. The size of the icon is 16px
  • status: progress and done

##Mixins to change the base

Custom property Description Default
--standard-timeline The color for standard status #2196f3;
--progress-timeline The color for progress status #ff9800;
--done-timeline The color for done status #93383b;
--timeline-time Mixin for the time part {}
--timeline-title Mixin for the title part {}
--timeline-text Mixin for the text part {}

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

Viewing Your Application

$ polymer serve

Building Timeline

$ polymer build

This will create a build/ folder with bundled/ and unbundled/ sub-folders 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 from:

$ polymer serve build/bundled

Running Tests

$ 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.

Contribution

Feel free to contribute to the timeline component.

About

Polymer timeline element

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages