Skip to content

Instantly share code, notes, and snippets.

@mbemowski
mbemowski / ngGrid.js
Created September 17, 2012 13:49 — forked from dalcib/ngGrid.js
Angular Grid
/**
* Grid directive for angularJS, based on dalcib's Angular Grid https://gist.github.com/2630138
* It's events are more angular-style and it operates on special object NavigationVector. It allows
* to select a row and to add custom rows at the bottom (for example to notify, that there are no rows found)
* When creating NavigationVector object you should pass the scope in which it will be declared in order
* to properly bind $watch expressions. Thanks to this you will be able to update index, selected or even
* items properties and other properties will be updated to match the change you made.
*
* Example:
<table ng-grid="" width="100%">