Show number of filtered entries in SmartTable

2019-08-12 13:39发布

I am using the regular st-search directive for st-table to filter my smart table.

Is it somehow possible to display the number of entries which match this filter? There seems to only be access to the total number entries (entries) as well as the ones currently shown in the paginator (entries_displayed).

EDIT: minimal example:

<table st-table="entries_displayed" st-safe-src="entries">
    ...  <input st-search=""/> ...
</table

1条回答
家丑人穷心不美
2楼-- · 2019-08-12 14:00

This has been implemented recently, the controller now has a method getFilteredCollection.

https://github.com/lorenzofox3/Smart-Table/issues/261

查看更多
登录 后发表回答