SAPUI5 甘特图官方示例不起作用 [英] SAPUI5 Gantt chart official example does not work
问题描述
尊敬的 SAPUI5 开发人员:
Dear SAPUI5 developers,
我想用SAPUI5的甘特图.我在以下链接中只找到了一个甘特图示例:
I want to use the Gantt chart of SAPUI5. I found just one example of Gantt Chart in the following link:
https://sapui5.hana.ondemand.com/explored.html#/sample/sap.gantt.sample.BasicGanttChart/preview
虽然该示例在他们的官方网站上运行良好,但我下载了它并在 WebIDE 中运行.但它抛出以下错误,其放大镜等功能不起作用.
While the example works fine in their official website, I downloaded it and run inside of the WebIDE. But it throws the following error and its features like magnifier does not work.
Uncaught (in promise) Error: "-Infinity%" is of type string, expected sap.ui.core.CSSSize for property "selectionPanelSize" of Element sap.gantt.GanttChartWithTable#__xmlview0--ganttView(…)
我没有改变任何东西.因此,如果您需要运行示例来运行它,您可以从上面的链接下载.
I didn't change anything. So if you need to run the example to run it you can download the from the above link.
我也在寻找一些关于 SAPUI5 甘特图的教程.但我还没有找到任何东西.如果您能将我重定向到与此功能相关的一些教程,我将不胜感激.
Also I am looking for a some tutorials about SAPUI5 Gantt Chart. But I have not yet found anything. If you can redirect me to some tutorial related to this feature I appreciate it.
据我所知,这个问题与控制器无关.即使我只是加载 XML 视图,也会出现此错误.
As I understood this problem is not related to the controller. And even when I just load the XML view this error appears.
提前致谢
推荐答案
在 index.html 中,删除 data-sap-ui-preload="async".希望有帮助.
In index.html, remove data-sap-ui-preload="async". Hope it Helps.
这篇关于SAPUI5 甘特图官方示例不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!