vm.rowCollection = [
{firstName: 'Laurent', lastName: 'Renard', birthDate: new Date('1987-05-21'), balance: 102, email: 'whatever@gmail.com'},
{firstName: 'Blandine', lastName: 'Faivre', birthDate: new Date('1987-04-25'), balance: -2323.22, email: 'oufblandou@gmail.com'},
{firstName: 'Francoise', lastName: 'Frere', birthDate: new Date('1955-08-27'), balance: 42343, email: 'raymondef@gmail.com'}
];
vm.removeRow = function removeRow(row) {
var index = scope.rowCollection.indexOf(row);
if (index !== -1) {
scope.rowCollection.splice(index, 1);
}
}
});
It looks like combining Date Range filter (Date and numeric filtering example) with Persistent State (saved to Local Storage) does not work nicely.
When refreshing the page, the filter is getting applied, but the input field stays blank.
Is there an easy way to make the Date Range filter to populate on page refresh?
@lorenzofox3 Thanks for your suggestion.
I set the total to a very large number.
Added logic to prevent clicking Next when response brings 0 items back.
Removed Jump to Last Page. Removed Jump to a Specific Page.
Now I can still paginate Left and Right and jump to First page.
Thank again!
ng-click
and calling a function when the table header field is clicked. Using the class of the header field, I can see whether the sort order is ascent
or descent
. But doing so involves a lot of hacks. If there is a cleaner way built into the smart table library, that would be great