Table + AngularJS
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.
Compatibility
For work in IE < 9 need jQuery, just add:
<!--[if lt IE 9]>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<![endif]-->
Plugins
Updates
v0.3.2 (master)
- add multisorting (click on header with Ctrl-key)
v0.3.1
- add support of
header-class
attribute - add fixes for compatibility with early versions of AngularJS
- add
data
field to ngTableParams - Allow expressions in the sortable & filter attribute (Issue #93)
v0.3.0
- I abandoned from CoffeeScript in favor of a javascript, fully agree with http://blog.ponyfoo.com/2013/09/28/we-dont-want-your-coffee & (rus) http://habrahabr.ru/post/195944/
- added examples of table with grouping
- fully rewrited interface of ngTableParams
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)
- Pagination
- Sorting
- Filtering
- Cell template
- Row template
- Params in url
- Ajax
- Table with hidden pagination
- Custom template(pagination)
- Custom filters
- Table with checkboxes
- Table with grouping
- Table with grouping with callback
- Table with external control of data
- Export to CSV
PS
Let me know if you are using ng-table. It will motivate me to work harder. And if you like ng-table, just email me and add your website here Hope you like it, Thanks! :)
This project is part of Bazalt CMS.