在 JavaScript 符号中使用甘特图

Use GanttChart in JavaScript notation

我想使用甘特图控件。我结合 GWT 构建 Web 应用程序,所以我在 JavaScript 中构建所有内容,而不是使用 XML 或其他方式访问 GWT 之外的所有控件。

现在我遇到的问题是 GanttChartContainer class 没有像所有其他的那样扩展任何其他 class(许多从控件、对象和其他扩展),所以我可以' 将它添加到任何其他控件,例如页面。文档中是否缺少此信息或如何将其添加到现有视图?

这是此 class 的文档: https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.gantt.GanttChartContainer.html

我认为这是文档中的一个错误。如果你勾选这个 example and introspect the sources you see that GanttChartContainer extends sap.ui.core.Control.