Skip to content

Commit 929dc04

Browse files
committed
(chore): rename
1 parent df7a426 commit 929dc04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+222
-218
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# angular2-data-table
2-
[![Join the chat at https://gitter.im/swimlane/angular2-data-table](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/swimlane/angular2-data-table?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3-
[![Code Climate](https://codeclimate.com/github/swimlane/angular2-data-table/badges/gpa.svg)](https://codeclimate.com/github/swimlane/angular2-data-table)
4-
[![Build Status](https://travis-ci.org/swimlane/angular2-data-table.svg?branch=master)](https://travis-ci.org/swimlane/angular2-data-table)
5-
[![Test Coverage](https://codeclimate.com/github/swimlane/angular2-data-table/badges/coverage.svg)](https://codeclimate.com/github/swimlane/angular2-data-table/coverage)
6-
[![Dependency Status](https://david-dm.org/swimlane/angular2-data-table.svg)](https://david-dm.org/swimlane/angular2-data-table)
7-
[![devDependency Status](https://david-dm.org/swimlane/angular2-data-table/dev-status.svg)](https://david-dm.org/swimlane/angular2-data-table#info=devDependencies)
8-
[![npm version](https://badge.fury.io/js/angular2-data-table.svg)](http://badge.fury.io/js/angular2-data-table)
9-
[![npm downloads](https://img.shields.io/npm/dm/angular2-data-table.svg)](https://npmjs.org/angular2-data-table)
1+
# ngx-datatable
2+
[![Join the chat at https://gitter.im/swimlane/ngx-datatable](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/swimlane/ngx-datatable?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3+
[![Code Climate](https://codeclimate.com/github/swimlane/ngx-datatable/badges/gpa.svg)](https://codeclimate.com/github/swimlane/ngx-datatable)
4+
[![Build Status](https://travis-ci.org/swimlane/ngx-datatable.svg?branch=master)](https://travis-ci.org/swimlane/ngx-datatable)
5+
[![Test Coverage](https://codeclimate.com/github/swimlane/ngx-datatable/badges/coverage.svg)](https://codeclimate.com/github/swimlane/ngx-datatable/coverage)
6+
[![Dependency Status](https://david-dm.org/swimlane/ngx-datatable.svg)](https://david-dm.org/swimlane/ngx-datatable)
7+
[![devDependency Status](https://david-dm.org/swimlane/ngx-datatable/dev-status.svg)](https://david-dm.org/swimlane/ngx-datatable#info=devDependencies)
8+
[![npm version](https://badge.fury.io/js/@swimlane/ngx-datatable.svg)](http://badge.fury.io/js/@swimlane/ngx-datatable)
9+
[![npm downloads](https://img.shields.io/npm/dm/@swimlane/ngx-datatable.svg)](https://npmjs.org/@swimlane/ngx-datatable)
1010

11-
`angular2-data-table` is a Angular2 component for presenting large and complex data. It has all the features you would expect from any other table but in a light package with _no external dependencies_. The table was designed to be extremely flexible and light; it doesn't make any assumptions about your data or how you: filter, sort or page it.
11+
`ngx-datatable` is a Angular2 component for presenting large and complex data. It has all the features you would expect from any other table but in a light package with _no external dependencies_. The table was designed to be extremely flexible and light; it doesn't make any assumptions about your data or how you: filter, sort or page it.
1212

1313
It was built for modern browsers using _TypeScript, CSS3 and HTML5_ and Angular `~2.0.0`. This is the sister project of the [angular-data-table](https://github.com/swimlane/angular-data-table) that is designed for Angular 1.x.
1414

15-
Check out the [documentation](https://swimlane.gitbooks.io/angular2-data-table/) & [demos](http://swimlane.github.io/angular2-data-table/) for more information!
15+
Check out the [documentation](https://swimlane.gitbooks.io/ngx-datatable/) & [demos](http://swimlane.github.io/ngx-datatable/) for more information!
1616

1717
## Features
1818
- Handle large data sets ( Virtual DOM )
@@ -31,10 +31,10 @@ Check out the [documentation](https://swimlane.gitbooks.io/angular2-data-table/)
3131
- AoT Compilation Support
3232

3333
## Installation
34-
To use angular2-data-table in your project install it via [npm](https://www.npmjs.com/package/angular2-data-table):
34+
To use ngx-datatable in your project install it via [npm](https://www.npmjs.com/package/@swimlane/ngx-datatable):
3535
```
36-
npm i angular2-data-table -S
36+
npm i ngx-datatable -S
3737
```
3838

3939
## Credits
40-
`angular2-data-table` is a [Swimlane](http://swimlane.com) open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.
40+
`ngx-datatable` is a [Swimlane](http://swimlane.com) open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.

demo/app.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ import { Component } from '@angular/core';
55
template: `
66
<div>
77
<nav>
8-
<h3>angular2-data-table <small>({{version}})</small></h3>
8+
<h3>ngx-datatable <small>({{version}})</small></h3>
99
<ul class="main-ul">
1010
<li>
1111
<h4>Documentation</h4>
1212
<ul>
1313
<li>
14-
<a href="https://swimlane.gitbooks.io/angular2-data-table/content/" target="_black">Online</a>
14+
<a href="https://swimlane.gitbooks.io/ngx-datatable/content/" target="_black">Online</a>
1515
</li>
1616
<li>
17-
<a href="https://www.gitbook.com/download/pdf/book/swimlane/angular2-data-table" target="_black">PDF</a>
17+
<a href="https://www.gitbook.com/download/pdf/book/swimlane/ngx-datatable" target="_black">PDF</a>
1818
</li>
1919
</ul>
2020
</li>

demo/basic/basic-auto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component } from '@angular/core';
55
template: `
66
<div>
77
<h3>Fluid Row Heights</h3>
8-
<swui-datatable
8+
<ngx-datatable
99
class="material"
1010
[rows]="rows"
1111
[loadingIndicator]="loadingIndicator"
@@ -14,7 +14,7 @@ import { Component } from '@angular/core';
1414
[headerHeight]="50"
1515
[footerHeight]="50"
1616
[rowHeight]="'auto'">
17-
</swui-datatable>
17+
</ngx-datatable>
1818
</div>
1919
`
2020
})

demo/basic/basic-fixed.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import { Component } from '@angular/core';
55
template: `
66
<div>
77
<h3>Fix Row Height</h3>
8-
<swui-datatable
8+
<ngx-datatable
99
class="material striped"
1010
[rows]="rows"
1111
[columns]="columns"
1212
[columnMode]="'force'"
1313
[headerHeight]="50"
1414
[footerHeight]="50"
1515
[rowHeight]="50">
16-
</swui-datatable>
16+
</ngx-datatable>
1717
</div>
1818
`
1919
})

demo/basic/contextmenu.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Component } from '@angular/core';
1212
<p *ngIf="rawEvent"><strong>Mouse position:</strong> <code>(x: {{rawEvent?.x}}, y: {{rawEvent?.y}})</code></p>
1313
<p *ngIf="contextmenuRow"><strong>Row:</strong> {{contextmenuRow?.name}}</p>
1414
</div>
15-
<swui-datatable
15+
<ngx-datatable
1616
class="material"
1717
[rows]="rows"
1818
[columns]="columns"
@@ -21,7 +21,7 @@ import { Component } from '@angular/core';
2121
[footerHeight]="50"
2222
[rowHeight]="'auto'"
2323
(rowContextmenu)="onContextMenu($event)">
24-
</swui-datatable>
24+
</ngx-datatable>
2525
</div>
2626
`
2727
})

demo/basic/filter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Component } from '@angular/core';
1111
placeholder='Type to filter the name column...'
1212
(keyup)='updateFilter($event)'
1313
/>
14-
<swui-datatable
14+
<ngx-datatable
1515
class='material'
1616
[columns]="columns"
1717
[columnMode]="'force'"
@@ -20,7 +20,7 @@ import { Component } from '@angular/core';
2020
[rowHeight]="'auto'"
2121
[limit]="10"
2222
[rows]='rows'>
23-
</swui-datatable>
23+
</ngx-datatable>
2424
</div>
2525
`
2626
})

demo/basic/fullscreen.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component } from '@angular/core';
55
template: `
66
<div>
77
<h3>Full Screen</h3>
8-
<swui-datatable
8+
<ngx-datatable
99
class="material fullscreen"
1010
style="top: 52px"
1111
[columnMode]="'force'"
@@ -15,13 +15,13 @@ import { Component } from '@angular/core';
1515
[scrollbarV]="true"
1616
[scrollbarH]="true"
1717
[rows]="rows">
18-
<swui-datatable-column name="Id" [width]="80"></swui-datatable-column>
19-
<swui-datatable-column name="Name" [width]="300"></swui-datatable-column>
20-
<swui-datatable-column name="Gender"></swui-datatable-column>
21-
<swui-datatable-column name="Age"></swui-datatable-column>
22-
<swui-datatable-column name="City" [width]="300" prop="address.city"></swui-datatable-column>
23-
<swui-datatable-column name="State" [width]="300" prop="address.state"></swui-datatable-column>
24-
</swui-datatable>
18+
<ngx-datatable-column name="Id" [width]="80"></ngx-datatable-column>
19+
<ngx-datatable-column name="Name" [width]="300"></ngx-datatable-column>
20+
<ngx-datatable-column name="Gender"></ngx-datatable-column>
21+
<ngx-datatable-column name="Age"></ngx-datatable-column>
22+
<ngx-datatable-column name="City" [width]="300" prop="address.city"></ngx-datatable-column>
23+
<ngx-datatable-column name="State" [width]="300" prop="address.state"></ngx-datatable-column>
24+
</ngx-datatable>
2525
</div>
2626
`
2727
})

demo/basic/inline.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component } from '@angular/core';
55
template: `
66
<div>
77
<h3>Inline Editing</h3>
8-
<swui-datatable
8+
<ngx-datatable
99
#mydatatable
1010
class="material"
1111
[headerHeight]="50"
@@ -14,8 +14,8 @@ import { Component } from '@angular/core';
1414
[footerHeight]="50"
1515
[rowHeight]="'auto'"
1616
[rows]="rows">
17-
<swui-datatable-column name="Name">
18-
<template swui-datatable-cell-template let-value="value" let-row="row">
17+
<ngx-datatable-column name="Name">
18+
<template ngx-datatable-cell-template let-value="value" let-row="row">
1919
<span
2020
title="Double click to edit"
2121
(dblclick)="editing[row.$$index + '-name'] = true"
@@ -30,9 +30,9 @@ import { Component } from '@angular/core';
3030
[value]="value"
3131
/>
3232
</template>
33-
</swui-datatable-column>
34-
<swui-datatable-column name="Gender">
35-
<template swui-datatable-cell-template let-row="row" let-value="value">
33+
</ngx-datatable-column>
34+
<ngx-datatable-column name="Gender">
35+
<template ngx-datatable-cell-template let-row="row" let-value="value">
3636
<span
3737
title="Double click to edit"
3838
(dblclick)="editing[row.$$index + '-gender'] = true"
@@ -47,13 +47,13 @@ import { Component } from '@angular/core';
4747
<option value="female">Female</option>
4848
</select>
4949
</template>
50-
</swui-datatable-column>
51-
<swui-datatable-column name="Age">
52-
<template swui-datatable-cell-template let-value="value">
50+
</ngx-datatable-column>
51+
<ngx-datatable-column name="Age">
52+
<template ngx-datatable-cell-template let-value="value">
5353
{{value}}
5454
</template>
55-
</swui-datatable-column>
56-
</swui-datatable>
55+
</ngx-datatable-column>
56+
</ngx-datatable>
5757
</div>
5858
`
5959
})

demo/basic/live.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Component } from '@angular/core';
1313
<a href="#" (click)="remove()">Remove</a>
1414
</small>
1515
</h3>
16-
<swui-datatable
16+
<ngx-datatable
1717
#mydatatable
1818
class="material"
1919
[headerHeight]="50"
@@ -23,10 +23,10 @@ import { Component } from '@angular/core';
2323
[rowHeight]="'auto'"
2424
[trackByProp]="'updated'"
2525
[rows]="rows">
26-
<swui-datatable-column name="Name"></swui-datatable-column>
27-
<swui-datatable-column name="Gender"></swui-datatable-column>
28-
<swui-datatable-column name="Company"></swui-datatable-column>
29-
</swui-datatable>
26+
<ngx-datatable-column name="Name"></ngx-datatable-column>
27+
<ngx-datatable-column name="Gender"></ngx-datatable-column>
28+
<ngx-datatable-column name="Company"></ngx-datatable-column>
29+
</ngx-datatable>
3030
</div>
3131
`
3232
})

demo/basic/multiple.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ import { Component } from '@angular/core';
55
template: `
66
<div>
77
<h3>Multiple Tables</h3>
8-
<swui-datatable
8+
<ngx-datatable
99
class="material"
1010
[rows]="rows1"
1111
[columns]="columns1"
1212
[columnMode]="'force'"
1313
[headerHeight]="50"
1414
[footerHeight]="0"
1515
[rowHeight]="100">
16-
</swui-datatable>
16+
</ngx-datatable>
1717
<br />
18-
<swui-datatable
18+
<ngx-datatable
1919
class="material"
2020
[rows]="rows2"
2121
[columns]="columns2"
2222
[headerHeight]="50"
2323
[footerHeight]="50"
2424
[rowHeight]="'auto'">
25-
</swui-datatable>
25+
</ngx-datatable>
2626
</div>
2727
`
2828
})

0 commit comments

Comments
 (0)