@cisl/ngx-storyline-viewer

npm install @cisl/ngx-storyline-viewer

Usage no npm install needed!

<script type="module">
  import cislNgxStorylineViewer from 'https://cdn.skypack.dev/@cisl/ngx-storyline-viewer';
</script>

README

ngx-storyline-viewer

Installation

npm install @cisl/ngx-storyline-viewer

Usage

The app surfaces itself through the following tag:

<ngx-storyline-viewer serviceUrl="http://localhost:3000">Loading...</ng-storyline-viewer>

The element supports the following options:

  • serviceUrl: string (required)
  • count: number (default: 10)
  • currentView: string (default: 'all')
  • views: {[key: string]: View} (default: {})

On the element, it surfaces the following DOM events:

  • storyline-views
  • storyline-driver