问题
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
来源:https://stackoverflow.com/questions/28985412/show-number-of-filtered-entries-in-smarttable