-->

Show number of filtered entries in SmartTable

2019-08-12 13:58发布

问题:

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:

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

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