# ngx-v-timeline

> A simple and responsive easy to customize Angular Timeline Component

Latest version **0.0.6** (published 2020-06-14) · 0 weekly downloads

## Install

```sh
npm install ngx-v-timeline
pnpm add ngx-v-timeline
yarn add ngx-v-timeline
bun add ngx-v-timeline
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2020-06-14 |
| First published | 2020-06-13 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 116.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mrraymondvo |

## Links

- npm: https://www.npmjs.com/package/ngx-v-timeline
- npm.io page: https://npm.io/package/ngx-v-timeline

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.10.0

## Recent versions

- 0.0.6 (latest) — 2020-06-14
- 0.0.5 — 2020-06-14
- 0.0.4 — 2020-06-13
- 0.0.3 — 2020-06-13
- 0.0.2 — 2020-06-13

## README

# NgxVTimeline

A simple and responsive easy to customize Angular Timeline Component

## Installation

```javascript
$ npm i ngx-v-timeline
```
## Usage

### Import

```javascript
import { NgxVTimelineModule } from 'ngx-v-timeline';
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    NgxVTimelineModule
    ...
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```
### Component

```javascript
import { TimelineItem } from 'ngx-v-timeline';

...
 items: TimelineItem[] = [];
  popupMessage = 'Hello World';
 
  ngOnInit(): void {
    const self = this;
 
    this.items.push({
      label: 'Action',
      icon: 'fa fa-calendar-plus-o',
      styleClass: 'teste',
      content: `Lorem ipsum dolor sit amet, consectetur adipiscing elit,
      sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.`,
      title: 'June 29, 2020, 10:12',
      command() {
        alert(`test: ${self.popupMessage}`);
      }
    });
 
    this.items.push({
      label: 'Action',
      icon: 'fa fa-plus',
      styleClass: 'teste',
      content: `Ut enim ad minim veniam, quis nostrud exercitation ullamco
      laboris nisi ut aliquip ex ea commodo consequat.`,
      title: 'June 08, 2020, 12:00',
      command() {
        alert('Action!');
      }
    });
  }
```
### Template

```html
<lib-ngx-v-timeline [(items)]="items" [color]="gray" ></lib-ngx-v-timeline>
```

---
_Source: https://npm.io/package/ngx-v-timeline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
