我正在使用angular material表格来以表格格式显示数据。搜索数据的过滤代码为
applyFilter(filterValue: string) {
this.dataSource.filter = filterValue.trim().toLowerCase();
}
由于数据集很大,过滤需要6-7秒来检索数据。有没有办法添加装载器到这个。
发布于 2019-06-18 23:32:07
请尝试使用@matheo/datasource
,因为它在加载数据时支持加载微调器,还支持超时消息。我计划添加一些功能来支持不同的用例,比如超时后的重试尝试。
有关有效的演示和更多信息,请查看:
https://medium.com/@matheo/reactive-datasource-for-angular-1d869b0155f6
https://stackoverflow.com/questions/56596184
复制相似问题