UNPKG

3.81 kBMarkdownView Raw
1Table + AngularJS
2=================
3[![Build Status](https://travis-ci.org/esvit/ng-table.svg)](https://travis-ci.org/esvit/ng-table) [![Coverage Status](https://coveralls.io/repos/esvit/ng-table/badge.png)](https://coveralls.io/r/esvit/ng-table)
4[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
5
6Code licensed under New BSD License.
7
8This directive enhances your HTML tables. It support sorting, filtering and pagination.
9Header row with titles and filters automatic generated.
10
11
12## Installing
13
14**NPM**
15
16Install the current stable release:
17```
18npm install ng-table --save
19```
20Or install the latest beta release:
21```
22npm install ng-table@next --save
23```
24
25**CDN**
26
27You can download the distribution files directly from [unpkg](https://unpkg.com/ng-table/bundles/)
28
29
30## Getting started
31
32Please follow the getting started steps [here](http://ng-table.com/)
33
34
35## Examples
36
37* [Demo site](http://ng-table.com/)
38* Sample apps:
39 * [ES5](demo-apps/es5/readme.md)
40 * [ES2015 + SystemJS](demo-apps/es6-systemjs/readme.md)
41 * [ES2015 + Webpack](demo-apps/es6-webpack/readme.md)
42 * [Typescript + Webpack](demo-apps/ts-webpack/readme.md)
43* Codepen examples (**Tip**: fork these to create your own examples);
44 * [`ngTable`: inmemory list](http://codepen.io/christianacca/pen/VLqVeo?editors=101)
45 * [`ngTable`: server-side list](http://codepen.io/christianacca/pen/VLqqjP?editors=101)
46 * [`ngTableDynamic`: inmemory list](http://codepen.io/christianacca/pen/jPxgzY?editors=101)
47 * [`ngTableDynamic`: server-side list](http://codepen.io/christianacca/pen/JdwwrR/?editors=101)
48
49
50## Using Typescript?
51
52As of v2.0.0 ngTable is written in typescript and so you do NOT have to install external type declarations for this library.
53
54By installing the [ng-table package from npm](https://www.npmjs.com/package/ng-table), you will get typescript intellisense for all ng-table exported types.
55
56**WARNING:**. The type definitions on [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/ng-table) are depreciated.
57
58
59## Upgrading from an earlier version?
60
61### Upgrade from 0.8.3
62
63It's recommended to upgrade in two jumps:
64
651. Upgrade to version 1.0.0-beta.9, making any changes to your application code neccessary to work with this version
66 * EG: `bower install ng-table#1.0.0-beta.9 --save`
672. Refactor your application to remove any code that depended on depreciated behaviours that where removed in the 1.0.0 release
683. Install 1.0.0 (should now be a drop in replacement for 1.0.0-beta.9)
69 * Bower: `bower install ng-table#1.0.0 --save`
70 * NPM: `npm i ng-table@1.0.0 --save`
71
72
73### Upgrade from version earlier than 0.8.3
74
75It's recommended to upgrade in three jumps:
76
771. Upgrade to version 0.8.3, making any changes to your application code neccessary to work with this version
78 * EG: `bower install ng-table#0.8.3 --save`
793. Follow the guide above to upgrade from 0.8.3 -> 1.0.0-beta.9 -> 1.0.0
80
81**Tips**
82* Read the notes in [github releases](https://github.com/esvit/ng-table/releases). Each release details the breaking changes and migration guidance
83
84
85## Compatibility
86
87For work in IE < 9 need jQuery, just add:
88```html
89<!--[if lt IE 9]>
90 <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
91<![endif]-->
92```
93
94
95## Building from sources
96
971. Clone: `git clone https://github.com/esvit/ng-table.git`
982. Install: `npm install`
993. Build: `npm run build:full`
100
101* To locally build and serve docs site: `npm run doc && npm run serve:docs-site`
102* To locally serve the demo: `npm run serve:demo`
103
104
105## Want to contribute?
106
107See the [contributing](CONTRIBUTING.md) guidelines.
108
109---
110
111This project is part of [Bazalt CMS](http://bazalt-cms.com/).
112
\No newline at end of file