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, I've been using Smart Table and it has almost all that I need now, I was trying to mix ajax request with pagination but I haven't been able to get it work. Could you help me, please? maybe with an example using the current version of Smart Table.
Please refer to the 'submit issue' section fo readme ...
Ajax ? you mean loading pages dynamically using custom pipe function (stPipe) ?
In this case you have to tell smart table about the pages as it can not guess which page is loaded, how many pages you have etc. So set the table state in you pipe function
functioncustomPipe(tableState){getMyData().then(function(result){//pass from you server the relevant data to set the pagination state tableState.pagination={start:result.start,// start indexnumber:result.number,//number of item on a pagenumberOfPages:result.pages//total number of pages}})}
Hello, I've been using Smart Table and it has almost all that I need now, I was trying to mix ajax request with pagination but I haven't been able to get it work. Could you help me, please? maybe with an example using the current version of Smart Table.
Thank you.
PS: I've been reviewing this documentation: Client side Pagination, pipe/ajax plugin on http://lorenzofox3.github.io/smart-table-website/
The text was updated successfully, but these errors were encountered: