跳转到主要内容

unblockTime

警告

此功能已棄用。

Description

移除之前通过 blockTime() 方法设置的时间阻断

unblockTime: (days: any, zones?: any[], sections?: any) => void

Parameters

  • days - (required) any - (Date, number, array, string) 指定要解除阻断的日期
  • zones - (optional) array - 指定要解除阻断的时间段,单位为分钟。可设置为 'fullday' 以解除全天阻断
  • sections - (optional) object - 允许仅针对特定视图中的特定项解除日期的阻断。请注意,指定的日期只会在相关视图中被解除阻断

Example

var spanId = scheduler.blockTime(new Date(2013,2,5), "fullday");
...
// 解除2013年2月5日0点到8点以及18点到24点的阻断
scheduler.unblockTime(new Date(2013,2,5), [0,10*60]);

Change log

  • 自 v5.1 起废弃
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.