跳转到主要内容

getView

Description​

根据视图名称返回一个视图对象。如果未提供名称,则返回当前视图。

getView: (name?: string) => any

Parameters​

  • name - (optional) string - 可选,视图的名称。

Returns​

  • view - (object) - 一个视图对象。

Example​

const timeline = scheduler.getView(); 
timeline.x_size = 8;
scheduler.setCurrentView();

Details​

此方法仅返回具有自己对象表示的视图。目前,这包括timeline和units视图,因此对于任何其他视图,该方法将返回null。

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.