javascript - SAPUI5中的最佳实践表

标签 javascript performance sapui5

我已经直接将 sap.m.Table 与 OData 以及 JSON 一起使用。但显示 500 多个项目(例如 7 列)的最佳实践是什么? 我应该将 OData 加载到本地 JSON 模型中还是直接使用具有不断增长的功能(分页)的 OData?

[编辑版本+下面的研究]

根据 Improve this question 的API

  • ... For mobile devices, the recommended limit of table rows is 100 (based on 4 columns) to assure proper performance. To improve initial rendering on large tables, use the growing feature

根据sap.m.Table的API

  • Provides a comprehensive set of features for displaying and dealing with vast amounts of data.

  • the Table control reuses its DOM elements of the rows. When the user scrolls, only the row contexts are changed but the rendered controls remain the same

那么无论如何,人们都必须使用不断增长的功能吗?

最佳答案

不建议对超过 100 个项目和大约 4 列使用 sap.m.Table。否则可能会出现性能问题。对于大数据 sap.ui.table.Table 最适合。因此,超过 500 行和 7 列的 sap.ui.table.Table 是您的选择。最佳实践是直接使用 odata 模型。

关于javascript - SAPUI5中的最佳实践表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45696977/

相关文章:

c - MPI_Bcast : Efficiency advantages?

linux - 如何提高 Postgresql 'truncate' 性能?

xml - 如何在 sapUI XML View 中迭代 JSONModel?

javascript - 如何避免 UI5 中的 "Synchronous XMLHttpRequest on the main thread"警告?

javascript - Angular 4 - 如何为原型(prototype)设计和开发模拟模拟数据

javascript - 我一直在尝试使用 Node js 访问 json 文件中的数据,但输出未定义

javascript - 使用包含重复 JavaScript 的另一个数组从数组中删除元素

javascript:设置属性或返回值? (简单的方法)

c# - lambda 表达式或 get_property 函数在 C# 中的实际作用是什么?

sapui5 - 如何在 UI5 的 SmartField 值帮助中默认隐藏高级搜索?