You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, the getter in st-multi-sort works very well except when initializing the table the sorting is done in a strange way. Despite the ridge of having put st-default-sort="true" I have the impression that the getter is not used during the first loading of the table.
But as soon as I sort the column the getter works perfectly !
AngularJS : 1.6.9
Smart table : 2.1.11
St-multi-sort : 1.1.11
Exemple (sample of my code) <div st-safe-src="probes" st-table="displayProbes">
... <th class="default-sort sortable" st-multi-sort="sortByName" st-sort-default="true" ng-click="sortColumn('name')"> {{'commons.tableHeader.name' | i18next}} </th>
scope.sortByName = function (row) { return row.name.toLowerCase(); };
Hello, the getter in st-multi-sort works very well except when initializing the table the sorting is done in a strange way. Despite the ridge of having put st-default-sort="true" I have the impression that the getter is not used during the first loading of the table.
But as soon as I sort the column the getter works perfectly !
Exemple (sample of my code)
<div st-safe-src="probes" st-table="displayProbes">
...
<th class="default-sort sortable" st-multi-sort="sortByName" st-sort-default="true" ng-click="sortColumn('name')"> {{'commons.tableHeader.name' | i18next}} </th>
scope.sortByName = function (row) { return row.name.toLowerCase(); };
Expected result:
Obtained result :
Plunker link
I'm participating in an issue on the smart-table depot. #773
The text was updated successfully, but these errors were encountered: