Skip to content

TopCS/ng-table

 
 

Repository files navigation

Table + AngularJS

Build Status Coverage Status

Code licensed under New BSD License.

This directive allow to liven your tables. It support sorting, filtering and pagination. Header row with titles and filters automatic generated on compilation step.

Click here to lend your support to: ngTable and make a donation at www.pledgie.com !

Updates

v0.3.0

v0.2.2

In functions that return data for the filters were removed .promise

$scope.names = function(column) {
    ...
    def.resolve(names);
    // return def.promise; - old code
    return def;
};

Installing via Bower

bower install ng-table

Examples (from simple to complex)

Usage

<table ng-table="tableParams" show-filter="true">
<tr ng-repeat="user in users">
    <!-- IMPORTANT: String titles must be in single quotes -->
    <td data-title="'Name of person'" filter="{ 'name': 'text' }" sortable="name">
        {{user.name}}
    </td>
    <td data-title="'Age'" filter="{ 'action': 'button' }" sortable="age">
        {{user.age}}
    </td>
</tr>
</table>

About

Simple table with sorting and filtering on AngularJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.0%
  • CSS 2.8%
  • CoffeeScript 1.2%