【问题标题】:Change start time extensible calendar (extjs)更改开始时间可扩展日历 (extjs)
【发布时间】:2011-09-29 07:11:04
【问题描述】:

我正在尝试一个 extjs 组件(可扩展日历)

http://ext.ensible.com/

我想将日视图中的开始时间更改为 4.30,但 23:00 之后数据不显示。

这让我发疯了T.T

拜托,有什么建议请...

【问题讨论】:

    标签: extjs calendar extensible


    【解决方案1】:

    设置日视图的viewStartHour : Integer 配置。

    Read docs here

    【讨论】:

      【解决方案2】:

      即时设置 viewStartHour 和 viewEndHour !!

      var cal = Ext.ComponentQuery.query('#app-calendar')[0];
      var activeView = cal.getActiveView();
      
      activeView.body.viewStartHour = 6; //you most use an variable!!
      activeView.body.viewEndHour = 12;
      
      activeView.body.tpl.viewStartHour = 6;
      activeView.body.tpl.viewEndHour = 12;
      activeView.body.tpl.constructor();
      
      activeView.body.refresh(false);
      

      享受!!!!

      【讨论】:

      • 欢迎来到 Stack Overflow!正如help center 中定义的那样,该问题不是 Stack Overflow 的主题。请不要回答此类问题;相反,您应该标记它们以引起注意,它们将被适当地关闭或迁移。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-21
      • 1970-01-01
      • 2015-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多