Questions tagged [ngtable]

ngTable is an AngularJS directive that is used for simple sorting and filtering html tables.

ngTable

This directive enhances your HTML tables. It support sorting, filtering and pagination. Header row with titles and filters automatic generated.

Features provided by ngTable

  • 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
616 questions
6
votes
2 answers

AngularJS - mocking ngTableParams in jasmine test case

I have created an application using ng-table , the application is workign fine but when i wrote a jasmine test case i am getting. Error: [$injector:unpr] Unknown provider: TableParamsProvider Can anyone please tell me how to mock the ngTableParams…
Alex Man
  • 4,746
  • 17
  • 93
  • 178
6
votes
0 answers

displaying params on url disable pagination on ngTable

I want to show table parameters (page, count, filter, etc.) in the url. so I use the following code in my controller : $scope.tableParams = new ngTableParams( angular.extend({ page : 1, …
hamedkh
  • 909
  • 3
  • 18
  • 35
6
votes
1 answer

how to add dynamic column in ng-table using complex object or json?

i have following code for ng-table:see plunker var app = angular.module('main', ['ngTable']). controller('DemoCtrl', function($scope, $filter, ngTableParams) { var data = [{name: "Moroni", age: 50,address:{coun:'USA',state:'sd'}}, …
Mukund Kumar
  • 21,413
  • 18
  • 59
  • 79
6
votes
3 answers

How to set dynamic data-title in ngtable (angular plugin)

I want have a multi language view with an ngTable. For do that, i set in my controller a $scope.translate (a valid json) who contains my traductions. In my view i want set my data-title like {{translate.code}} etc... my view :
Ema.H
  • 2,862
  • 3
  • 28
  • 41
6
votes
3 answers

ngtable server side pagination

Hello I try figure out how make server side pagination with angularjs an ngtable. I have two web services: localhost:8080/app/api/period Method GET return json list of entities. As parameters are passed page number, range of start period and range…
bmlynarczyk
  • 808
  • 10
  • 19
6
votes
1 answer

I'm getting TypeError: Cannot call method 'slice' of undefined when loading data from factory ng-Table AngularJS

I'm new to AngularJS and got stucked in displaying the data when using ng-Table coming from a service. I'm getting an error TypeError: Cannot call method 'slice' of undefined at Object.$scope.tableParams.ngTableParams.getData…
MarkJ
  • 867
  • 10
  • 13
6
votes
2 answers

How do i filter a row based on any column data with single textbox

I am using ng-table. I tried to use filter given in the example, but for filtering each column i need to have separate textbox. But what i tying to achieve is, One textbox to search any row based on any column data. How can i achieve this ? Just…
Viswa
  • 3,211
  • 5
  • 34
  • 65
5
votes
3 answers

ng-Table sorting and searching not working when use $resource

i started with an existing example of ngTable an modified it a bit to use ngResource. using resource factory it populates the data but searching and sorting doesn't works. http://codepen.io/anon/pen/yVGKMZ Created a pen above. var app =…
Raas Masood
  • 1,475
  • 3
  • 23
  • 61
5
votes
3 answers

Params undefined in ng-table's getData function

I am running into a problem using ng-table where the params that should be passed into my getData function is undefined. I an new to AngularJS and ng-table, so any help would be appreciated. I have verified that the REST calls in the code below work…
Edward Swing
  • 121
  • 1
  • 9
5
votes
3 answers

Add columns to dynamic ng-table based on results of promise

I've been using the ngTableDynamic directive recently and it works great when I know exactly what columns my table should expect. However, I'm running into issues when my table is truly dynamic and I do not know in advance the number or type of…
MattDionis
  • 3,534
  • 10
  • 51
  • 105
5
votes
4 answers

Angularjs ng-attr-title not working in chrome browser

I am using ng-table to display all values in table grid view. I want to display some messages when user hover the cell. So I am using ng-attr-title as a tool-tip. It's working in firfox, but it's not working in google chrome web…
Deepak raj
  • 269
  • 1
  • 5
  • 19
5
votes
0 answers

Angular ng-table server-side pagination

I have a problem with server side pagination. I am loading paged data from server. The data loads correct, however the display of the data is strange: e.g. when I move from page 1 to page 2, I can see the data from page one on the bottom of the list…
Roman Pylypets
  • 171
  • 2
  • 11
5
votes
2 answers

Angularjs: bracket missing in attribute

Im doing Angularjs code and have a strange error: "Error: [$parse:syntax] Syntax Error: Token '{' invalid key at column 2 of the expression [{{asset.sn}}] starting at…
P.K.
  • 1,746
  • 6
  • 25
  • 62
5
votes
3 answers

ngtable : sort and filter on nested object

I have a list of objects to display on a table with ngTable. My object looks like : obj {label:string, nestObj{nestLabel:string } } In my controller I want to allow sorting and filtering on fields 'label' and…
user1260928
  • 3,269
  • 9
  • 59
  • 105
5
votes
1 answer

ng-table filter with nested properties

I have following JSON: [{ "Id": "1", "Data": {"Str1": "Ann", "Str2": "Xenna"} },{ "Id": "2", "Data": {"Str1": "Bob","Str2": "Bobby"}, }] And I created ng-table to display it. I tried to add filter. When I filter by Id…
Piotr Stapp
  • 19,392
  • 11
  • 68
  • 116
1 2
3
41 42