From 96dac5efbeb450425557909e22414019f25549bc Mon Sep 17 00:00:00 2001 From: samsam321 Date: Mon, 20 Nov 2017 16:53:30 +0800 Subject: [PATCH] Update stSelectRow.js Get all selected row of all page, work with pagination. --- src/stSelectRow.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stSelectRow.js b/src/stSelectRow.js index 188408f8..4f244f5c 100644 --- a/src/stSelectRow.js +++ b/src/stSelectRow.js @@ -4,7 +4,8 @@ ng.module('smart-table') restrict: 'A', require: '^stTable', scope: { - row: '=stSelectRow' + row: '=stSelectRow', + stGetSelected: '=?' }, link: function (scope, element, attr, ctrl) { var mode = attr.stSelectMode || stConfig.select.mode; @@ -20,6 +21,7 @@ ng.module('smart-table') } else { element.removeClass(stConfig.select.selectedClass); } + scope.stGetSelected = ctrl.getFilteredCollection(); }); } };