Horizontal Timeline Component on Angular2
Horizontal Timeline Component on Angular2 (original component: https://codyhouse.co/demo/horizontal-timeline/index.html)
horizontal-timeline
to your components folder.cd-arrow.svg
to your assets folder.horizontal-timeline.component.css
: change url to your assets folder in line background: url(assets/images/cd-arrow.svg) no-repeat 0 0;
(see https://github.com/angular/angular/issues/6637).<horizontal-timeline [timelineElements]="timeline" [showContent]="true"></horizontal-timeline>
.Name | Type | Description | Default value |
---|---|---|---|
eventsMinDistance |
number |
Minimal distance between elements in px | 80 |
timelineElements |
TimelineElement |
Timeline elements | none |
dateFormat |
string |
Date format string | 'dd.MM.yyyy' |
disabled |
boolean |
If true , only left and right buttons are clickable |
false |
showContent |
boolean |
Use false to hide content, true to show content |
false |
timelineWrapperWidth |
number |
Width of timeline wrapper in px | 720 |
Name | Type | Description |
---|---|---|
date |
Date |
Event date |
title |
string |
Element content title |
selected |
boolean |
Is element selected |
content |
string |
Element content |