Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 18ea60a

Browse files
committed
Merge branch 'master' into dev
2 parents 941cd11 + 1c042d6 commit 18ea60a

File tree

3 files changed

+68
-4
lines changed

3 files changed

+68
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: node_js
22
node_js:
3-
- '0.8'
43
- '0.10'
54
before_script:
65
- 'npm install -g bower grunt-cli'

README.md

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,71 @@
11
angular-datatables [![Build Status](https://travis-ci.org/l-lin/angular-datatables.png?branch=master)](https://travis-ci.org/l-lin/angular-datatables) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)
22
================
3-
> Datatables for Angular.
3+
> Angular module that provides a `datatable` directive along with datatable options helpers.
4+
5+
Notes
6+
-----
7+
8+
The required dependencies are:
9+
10+
* [AngularJS](http://angular.org) (tested with version 1.2.6)
11+
* [jQuery](http://jquery.com) (tested with version 1.11.0)
12+
* [Datatables](https://datatables.net) (tested with version 1.9.4)
13+
14+
This module has been tested with the following datatables modules:
15+
16+
* [ColReorder](https://datatables.net/extras/colreorder/) with version 1.1.0
17+
* [ColVis](https://datatables.net/extras/colvis/) with version 1.1.0
18+
* [TableTools](https://datatables.net/extras/tabletools/) with version 2.2.0
19+
20+
This module also has a [Twitter Bootstrap](http://getbootstrap.com/) support (tested with version 3.1.1).
21+
22+
Getting started
23+
---------------
24+
25+
### Download
26+
27+
**Manually**
28+
29+
The files can be downloaded from:
30+
31+
* Minified [JS](https://raw.github.com/l-lin/angular-datatables/master/dist/angular-datatables.min.js) and [CSS](https://raw.github.com/l-lin/angular-datatables/master/dist/datatables.bootstrap.min.css) for production usage
32+
* Un-minified [JS](https://raw.github.com/l-lin/angular-datatables/master/dist/angular-datatables.js) and [CSS](https://raw.github.com/l-lin/angular-datatables/master/dist/datatables.bootstrap.css) for development
33+
34+
> The CSS file only contains `Twitter Bootstrap` styles to support datatables.
35+
36+
**With Bower**
37+
38+
```
39+
bower install angular-datatables
40+
```
41+
42+
### Installation
43+
44+
Include the JS file in your `index.html` file:
45+
46+
```html
47+
<script src="angular-datatables.min.js"></script>
48+
```
49+
50+
If you want the `Twitter Bootstrap` support, then add the CSS file:
51+
52+
```html
53+
<link rel="datatables.bootstrap.min.css" rel="stylesheet">
54+
```
55+
56+
Declare dependencies on your module app like this:
57+
58+
```html
59+
angular.module('myModule', ['datatables']);
60+
```
61+
62+
Additional notes
63+
----------------
64+
65+
This module does not support multiple datatables in the same page YET!
66+
67+
Usage
68+
-----
469

570
See [github page](https://l-lin.github.io/angular-datatables).
671

demo/partials/getting_started.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ <h4>Manually</h4>
2424
The files can be downloaded from:
2525
<ul>
2626
<li>
27-
Minified <a href="https://raw.github.com/l-lin/angular-datatables/master/dist/angular-datatables.min.js">JS</a> for production usage
27+
Minified <a href="https://raw.github.com/l-lin/angular-datatables/master/dist/angular-datatables.min.js">JS</a> and <a href="https://raw.github.com/l-lin/angular-datatables/master/dist/datatables.bootstrap.min.css">CSS</a> for production usage
2828
</li>
2929
<li>
30-
Un-minified <a href="https://raw.github.com/l-lin/angular-datatables/master/dist/angular-datatables.js">JS</a> for development
30+
Un-minified <a href="https://raw.github.com/l-lin/angular-datatables/master/dist/angular-datatables.js">JS</a> and <a href="https://raw.github.com/l-lin/angular-datatables/master/dist/datatables.bootstrap.css">CSS</a> for development
3131
</li>
3232
</ul>
3333
</p>

0 commit comments

Comments
 (0)