ngtable

ngTable, how to load new data after withstanding data has been seen

点点圈 提交于 2019-12-12 02:42:59
问题 I am using ngTable to show records to user, calling for data after every page would be pointless because I'll be just overusing the server when it isn't even necessary. What I want to do is to add new data to the whole thing after the user has seen the old data completely. Let's say when the page is loaded I am loading 100 records and now ngTable will be able to show 100 data to the user. Now, when the user has seen 100 data I want to make a fresh request and update the table with new data

Select filter in ngTable does not update when ngtable reload is called

拥有回忆 提交于 2019-12-11 12:45:15
问题 I have a situation where I need to show all data on checkbox click, which reloads the ngtable, but the select filter does not load and shows previous value. Is there any other way to reload ngtable filters? Here is my plunker for the problem. Code <input id="datalabels" ng-model="taskCheckbox.isNormal" ng-change="allTaskCheckboxClicked(taskCheckbox.isNormal)" type="checkbox"> <label for="datalabels" style="font-weight:bold;">Show All Tasks</label> <table ng-table="taskDetailTableParams" show

AngularJS: ngTable with json data: filtering and sorting does not work

别说谁变了你拦得住时间么 提交于 2019-12-11 10:51:54
问题 I'm trying to populate data from a REST webservice in a table using ngTable. Data are shown, but they are neither sortable nor filterable. Filtering always returns empty list. Here is a link to the API I am referencing: http://bazalt-cms.com/ng-table/ JS: $scope.dataInstances = []; $scope.getDataInstances = function() { $http({ method : 'GET', url : '/rest/v1/data/instances', headers : { "Authorization" : "Basic " + btoa("USERNAME" + ":" + "PASSWORD") }, }) .success(function(data, status) {

ng-Table Grouping: Open only row at a time

旧街凉风 提交于 2019-12-11 07:56:44
问题 I'd to display only one open row at a time in ng-Table. At present, if a row is opened then it will stay open until the user collapses it manually. As each new row is opened, there is more and more data on display. I'm using this code to initiate the table with all rows closed, but I'm stumped at how to keep only one row closed. app.controller('groupCtrl', function($scope) { $scope.group.$hideRows = true; }); This plunkr shows the progress to date (http://plnkr.co/edit/2ABVrN?p=preview). Ted

ng2-table error: Can't bind to ' various items' since it isn't a known property of 'ng-table'

烂漫一生 提交于 2019-12-11 06:17:25
问题 I am using the valor software ng2-table but when I try and run it I get the following errors in the console but the compiler is happy, Any recommendations on how I go about resolving these errors, I assume I am missing imports or packages or something but for the life of me cannot work out how to debug this issue. Errors from console: Unhandled Promise rejection: Template parse errors: Can't bind to 'active' since it isn't a known property of 'ng-table'. 1. If 'ng-table' is an Angular

ng-table pagination, sorting and filter not working

冷暖自知 提交于 2019-12-11 04:12:11
问题 I am trying to use ngTable but its not working as expected. I've implemented pagination, sorting and filter Here is a plunker i have created. I have done same way as specified in the docs examples. The pagination, sorting and filter are not working. I tried to debug but i am not getting any error messages also 回答1: first inject $filter in controller controller('DemoCtrl', function($scope, $filter, ngTableParams) { second, you need to apply ng-repeat to $data variable like this <tr ng-repeat=

How to filter date in ngTable?

自作多情 提交于 2019-12-10 23:58:47
问题 I am trying to filter date in ngTable based on the given format d MMM yyyy HH:mm:ss . I followed this answer and created a custom filter, but it does not take the given format instead d MMM, yyyy . How can I have filter on ngTable to filter dates in a given format? Here is my plunker ngTable <td data-title="'Start Date'" class="text-center" header-class="text-left" filter="{ 'start_date': 'text' }" sortable="'type'">{{item.start_date| date: 'd MMM yyyy HH:mm:ss'}}</td> <td data-title="'End

angularjs ng-table is not showing data on returning to listing

旧城冷巷雨未停 提交于 2019-12-10 20:09:12
问题 I'm using AngularJS 1.2.10 stable with a Rails project and I'm trying to get ng-table working with my data and nothing is showing up. I've included the ng-table files and included it in my angular module. I'm getting data when I refresh the page, but if I navigate away from this view, then back again within the single page app it's not loading the data. ie: Refresh the browser on the listing and all the data is there, I go to view an individual item and I'm taken to a new page (via angularJS

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

China☆狼群 提交于 2019-12-10 13:17:41
问题 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 like jquery datatable search box. 回答1: This is how i did Html <input type="text" ng-model="searchUser"> <table ng-table="tableParams"> <tr ng-repeat="user in $data"> ... </tr> </table> Script var usersData = []; // initial data $scope.tableParams =

How to sort and filter ngTable date (milliseconds) data?

笑着哭i 提交于 2019-12-07 14:06:12
问题 I am pretty new to Angularjs need some help with sorting date in milliseconds in descending order as well as a filter for the table columns. I created a plunker here but when I key in some filter param I do not see any filtered data and the data is lost from table. Please help me in sorting date column and doing a case insensitive filter search, below I am providing my code. <table ng-table="tableParams" show-filter="true" class="table" > <tr ng-repeat="item in $data" height="10px"> <td data