Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-timeline-vertical

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-timeline-vertical

Inpired from : https://codepen.io/codyhouse/pen/FdkEf

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by66.67%
Maintainers
1
Weekly downloads
 
Created
Source

NgTimelineVertical

Inpired from : https://codepen.io/codyhouse/pen/FdkEf

Set of directive to display a vertical timeline on Angular.

Tested with

FramworkVersion
Angular5+
Ionic3+

Installation

npm i --save ng-timeline-vertical

Usage

<ng-timeline-vertical>
  <ng-timeline-item *ngFor="let item of timelineList"
    title="{{item.label}}"
    content="{{item.text}}"
    date="{{item.date_created}}"
    button="{{{title:'Read more', action: item.url}}}">
  </ng-timeline-item>
</ng-timeline-vertical>

Directive API

NameValueMandatoryComment
titlestringYes
contentstringNo
datestringNoDate must be already formatted for display
button{title: string, action: any}No

Transclusion

In the case you want to send custom html content into an item, it is possible to transclude some content inside a timeline item.
Example :

<ng-timeline-vertical>
  <ng-timeline-item
    title="Racoon per country"
    date="2012">
      <table style="width:100%">
        <tr>
          <th>Country</th>
          <th>Nb</th> 
        </tr>
        <tr>
          <td>USA</td>
          <td>500 000</td> 
        </tr>
        <tr>
          <td>Canada</td>
          <td>350 000</td> 
        </tr>
      </table>
  </ng-timeline-item>
</ng-timeline-vertical>

You can add as much transcluded content as you want in combination with the directive attributes.
The order of display is : Title, content, transclusion, button

TODO

  • Animations

FAQs

Package last updated on 18 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc