ngtable

Get the length of list shown by ng-Show

放肆的年华 提交于 2019-11-30 19:37:02
问题 I'm using Vraptor + Angular, and the question is simple. I hide some rows in my table with ng-show, but I want to take the count/length of the actual lines shown. Example: I have 10 records on $data. But when I use ng-show, it just shows 5 records. When I use $data.length, it returns 10, but I want it to return 5. Table: <table data-ng-table="$tableUsuario.params"> <tbody > <tr data-ng-repeat="usuario in $data | filter:search:strict" data-ng-show="usuario.ativo == filtroAtivo && (filtroPerfil

ngTableParams Pagination with $http.get

心已入冬 提交于 2019-11-30 16:11:17
Working on an AngularJS project and I've ran into the following problem: When using locally stored / hard coded data, the pagination works fine. When using remotely stored data, the pagination does not work properly. I have searched quite a bit, but couldn't find the solution to my problem, so here are the code snippits: The HTML: <div ng-controller="ngTableCtrl"> <p><strong>Pagina:</strong> {{tableParams.page()}}</p> <p><strong>Aantal weergegeven:</strong> {{tableParams.count()}}</p> <table ng-table="tableParams" class="table table-striped" template-pagination="custom/pager"> <tr ng-repeat="x

Angular ng-table dynamic headers doesn't work inside

回眸只為那壹抹淺笑 提交于 2019-11-30 10:23:46
I am using ng-table with dynamic columns, using the creator's example found at http://bazalt-cms.com/ng-table/example/20 It worked just fine, until i tried to wrap on a directive with transclude, witch caused the headers to disappear as seen on http://plnkr.co/edit/mjYVEf . index.html <!DOCTYPE html> <html> <head> <script data-require="angular.js@*" data-semver="1.2.0-rc3-nonmin" src="http://code.angularjs.org/1.2.0-rc.3/angular.js"></script> <script data-require="ng-table@*" data-semver="0.3.1" src="http://bazalt-cms.com/assets/ng-table/0.3.1/ng-table.js"></script> <script data-require="ng

ngTableParams Pagination with $http.get

守給你的承諾、 提交于 2019-11-29 16:26:11
问题 Working on an AngularJS project and I've ran into the following problem: When using locally stored / hard coded data, the pagination works fine. When using remotely stored data, the pagination does not work properly. I have searched quite a bit, but couldn't find the solution to my problem, so here are the code snippits: The HTML: <div ng-controller="ngTableCtrl"> <p><strong>Pagina:</strong> {{tableParams.page()}}</p> <p><strong>Aantal weergegeven:</strong> {{tableParams.count()}}</p> <table

ngTable filtering on nested fields

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 10:56:37
I've got a list of invoices in ng-table and would like to be able to filter on a nested attribute. The json looks like this; [ { id: 1, date: "20/03/2014", no: "1", client: { fullname: "ABC Catering" } } ] My view look like this <table ng-table="tableParams" show-filter="true" class="table"> <tr class='listing' ng-repeat="invoice in $data"> <td data-title="'Invoice No.'" sortable="'no'" filter="{'no':'text'}"> {{invoice.no}} </td> <td data-title="'Date'" sortable="'date'" filter="{'date':'text'}"> {{invoice.date}} </td> <td data-title="'Client'" sortable="'client.fullname'" filter="{'client

ng-Table not rendering new data when reloading request

可紊 提交于 2019-11-29 05:14:41
i have page with ng-table which works fine with initial data. I have a select box which send server request based on the option selected and then Iam getting new data to angular but is not updated with ng-table. Here is my view: <section data-ng-controller="ReportsController"> <div class="plain-box"> <table ng-table="tableParams" show-filter="true" class="table table-striped"> <thead> <tr> <th ng-repeat="column in columns" ng-show="column.visible" class="text-center sortable" ng-class="{ 'sort-asc': tableParams.isSortBy(column.field, 'asc'), 'sort-desc': tableParams.isSortBy(column.field,

How to have select filter in ngtable?

こ雲淡風輕ζ 提交于 2019-11-28 14:40:13
I am trying to have a select filter in ngtable . I followed this example but looks like if the select item has a space (eg: Not Installed or Not Running ), then it does not work (filter). I am putting up a plunker for help. There are couple of things I need help with Select does not work with space in the select item. Need exact filter match. Eg: Running select should only show Running and not Not Running . Also in ngtable example when user clicks on the select it gives an extra blank entry which is removed once user selects and clicks the select filter again. Auto width of ngtable w.r.t it's

ng-Table not rendering new data when reloading request

烂漫一生 提交于 2019-11-27 22:39:10
问题 i have page with ng-table which works fine with initial data. I have a select box which send server request based on the option selected and then Iam getting new data to angular but is not updated with ng-table. Here is my view: <section data-ng-controller="ReportsController"> <div class="plain-box"> <table ng-table="tableParams" show-filter="true" class="table table-striped"> <thead> <tr> <th ng-repeat="column in columns" ng-show="column.visible" class="text-center sortable" ng-class="{