[英]Counter in entity description ng-admin
Do you know if it's possible to display the total of results in the description of an enity view in ng-admin ? 您是否知道是否可以在ng-admin的enity视图的描述中显示结果的总和?
Example : users.listView() .title('Users') .description('{{data.total}} Profiles') .fields([])
示例:
users.listView() .title('Users') .description('{{data.total}} Profiles') .fields([])
Thanks 谢谢
No, it's not possible since the listLayoutController
only displays the title but does not fetch the data - that's the listController
's job. 不,这是不可能的,因为
listLayoutController
仅显示标题,但不获取数据-这就是listController
的工作。 The total number of items is only available in the datagrid and pagination components. 项目总数仅在数据网格和分页组件中可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.