ngx-horizontal-timeline
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Installation

$ npm i ngx-horizontal-timeline

Usage

Import

import { NgxHorizontalTimelineModule } from 'ngx-horizontal-timeline';
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    NgxHorizontalTimelineModule
    ...
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Component

...
items: TimelineItem[];
 
ngOnInit() {
  this.items.push({
    label: 'Test 1',
    icon: 'glyphicon glyphicon-adjust',
    active: true,
    title: 'Example 1',
    color: '16a085',
    command() {
      console.log('Action 1');
    }
  });
  
  this.items.push({
    label: 'Test 2',
    icon: 'fa fa-plus',
    title: 'Example 2',
    color: '2980b9',
    command() {
      console.log('Action 2');
    }
  });
}

Template

<ngx-htl-horizontal-timeline [(items)]="items"></ngx-htl-horizontal-timeline>

Package Sidebar

Install

npm i ngx-horizontal-timeline

Weekly Downloads

81

Version

0.0.6

License

MIT

Unpacked Size

92.4 kB

Total Files

29

Last publish

Collaborators

  • cally_afiune