totycro
totycro

Reputation: 95

Show number of filtered entries in SmartTable

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

Upvotes: 1

Views: 2664

Answers (1)

totycro
totycro

Reputation: 95

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

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

Upvotes: 2

Related Questions