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";
add
: option of adding a new row read-names
: use params names instead of getting the values the normal wayedit
: option of edit any row (only editable fields)delete
: option of deleting rowstable-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 falseedit
: this field is editable or not, by default falsesearch
: to search by this field or not, by default falseid
: this param is the id
name
: name of the parameter comming on the apilabel
: name visible of the parameterrequired
: if this field is required when editingtype
: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