Show number of filtered entries in SmartTable

左心房为你撑大大i 提交于 2019-12-11 13:26:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!