Skip to content

mijaelcohen/ngGrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

ngGrid a jqGrid adaptation

This is a Angular directive (1.x) adaptation for jQgrid: http://www.trirand.com/ The Directive does not use jQgrid plugin, only replicates its behavior towards backend structure of a jQgrid table.

Implementation

Im not working at this proyect, use at own risk
Include ngGrid into your module like: myModule = angular.module('myModule', ['ngGrid'])
code example:

$scope.url = "http://api.com/get";
$scope.urlEdit = "http://api.com/edit";

```HTML ```

ng-grid options
add : option of adding a new row
read-names : use params names instead of getting the values the normal way
edit : option of edit any row (only editable fields)
delete : option of deleting rows
table-class : you can add multiple classes to the table, like table-class="table table-red"

ng-grid-field options:
hidden: to hide or not this field, by default is false
edit: this field is editable or not, by default false
search : to search by this field or not, by default false
id : this param is the id name: name of the parameter comming on the api
label: name visible of the parameter
required: if this field is required when editing
type:
types : bool,date,password,none (none is default)
onoff: if you are using type="bool" onoff attribute changes the true/false value to "on"/"off" strings