0.0.9 • Published 1 year ago

ngx-timeline-view v0.0.9

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

NgxTimelineView

An Angular timeline component.

Installation

Install package

npm i ngx-timeline-view

Import module

import { NgxTimelineViewModule } from 'ngx-timeline-view';

@NgModule({
    imports: [NgxTimelineViewModule]
})

Usage

HTML

<ngx-timeline-view [events]="events"></ngx-timeline-view>

TypeScript

import { TimelineEvent } from 'ngx-timeline-view';

events: TimelineEvent[] = [
    { date: new Date('11/15/22'), content: 'A timeline event' },
    { date: new Date('8/3/22'), content: 'Another timeline event' }
];

Properties

NameTypeDescription
eventsTimelineEvent[]Array of timeline events
isTimeSincebooleanChanges date to time since
circleColorstringChanges color of the circle
0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago