跳转到主要内容

setCurrentView

Description

显示指定的视图和日期

setCurrentView: (date?: Date, view?: string) => void

Parameters

  • date - (optional) Date - 要显示的日期
  • view - (optional) string - 要显示的视图名称

Example

// 刷新当前视图和日期,不做任何更改
scheduler.setCurrentView();
// 显示当前视图中的2027年8月4日
scheduler.setCurrentView(new Date(2027, 7, 4));
// 在周视图中显示2027年6月3日
scheduler.setCurrentView(new Date(2027, 5, 3), "week");

Details

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.