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

angular2-iron-data-table

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-iron-data-table

Angular 2 directives to support iron-data-table

  • 0.9.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Setting up <iron-data-table> with ng cli

Setup new project
  • ng new my-dream-app
  • cd my-dream-app
Install and Configure directives
  • npm install angular2-iron-data-table --save

Install @vaadin/angular2-polymer as a dependency

angular-cli-build.json:

  • Add '@vaadin/angular2-polymer/**/*.js' and 'angular2-iron-data-table/index.js' to vendorNpmFiles

src/system-config.ts:

  • Add @vaadin/angular2-polymer and angular2-iron-data-table to barrels
  • Add '@vaadin': 'vendor/@vaadin' and 'angular2-iron-data-table': 'vendor/angular2-iron-data-table' to map
Install and Configure <iron-data-table>
  • cd public
  • bower install iron-data-table

index.html:

  • Add <script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
  • Add <link rel="import" href="bower_components/iron-data-table/iron-data-table.html">
  • Add <link rel="import" href="bower_components/iron-data-table/default-styles.html"> (optional)

src/app/my-dream-app.component.ts

  • Add import { PolymerElement } from '@vaadin/angular2-polymer';
  • Add import { RowTemplate, HeaderTemplate, DetailsTemplate} from 'angular2-iron-data-table';
  • Add items = [{value: 'foo'}, {value: 'bar'}]; into constructor

src/app/my-dream-app.component.html

  • Add
<iron-data-table [items]="items">
  <data-table-column name="Column Name">
    <div *headerTemplate="let column=column">Column name is: {{column.name}}</div>
    <div *rowTemplate="let item=item">{{item.value}}</div>
  </data-table-column>
</iron-data-table>

@vaadin/angular2-polymer converts the API to be angular2-compatible, see http://saulis.github.io/iron-data-table/ and http://saulis.github.io/iron-data-table/demo/ for more API details and usage examples.

FAQs

Package last updated on 30 Jun 2016

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