从 Angular ui-calendar 事件中删除事件时间
Remove event time from Angular ui-calendar event
这里只是一个问题。我注意到在我的日历中,还有 Ui 日历页面 (http://angular-ui.github.io/ui-calendar/) 中给出的示例,事件块上有奇怪的值 (4p、8p、12a),其中签出后,它实际上代表事件时间。我没有在活动 object 中提供任何时间(Ui 日历页面中的示例也是如此),但它仍然在活动块上显示 4p 8p 12a 值。
如果在我的活动 object 中,我没有指定任何时间值,我只想显示标题或可能将其留空,我该如何删除该活动时间值?
有一种巧妙的方法可以隐藏这些元素。
AngularUI 使用 CSS class 来设置事件时间的样式,只需将其隐藏在您自己的 CSS:
中
.fc-time {
display: none !important;
}
根据github docs, it says that the component works with everything mentioned in the fullcalendar.io documentation。从那个页面来看,displayEventTime
属性 看起来确实可以解决问题。也许是这样的:
// config object
calendar: {
height: 450,
editable: true,
displayEventTime: false,
// etc...
}
免责声明:我自己还没有尝试过。
这里只是一个问题。我注意到在我的日历中,还有 Ui 日历页面 (http://angular-ui.github.io/ui-calendar/) 中给出的示例,事件块上有奇怪的值 (4p、8p、12a),其中签出后,它实际上代表事件时间。我没有在活动 object 中提供任何时间(Ui 日历页面中的示例也是如此),但它仍然在活动块上显示 4p 8p 12a 值。
如果在我的活动 object 中,我没有指定任何时间值,我只想显示标题或可能将其留空,我该如何删除该活动时间值?
有一种巧妙的方法可以隐藏这些元素。 AngularUI 使用 CSS class 来设置事件时间的样式,只需将其隐藏在您自己的 CSS:
中.fc-time {
display: none !important;
}
根据github docs, it says that the component works with everything mentioned in the fullcalendar.io documentation。从那个页面来看,displayEventTime
属性 看起来确实可以解决问题。也许是这样的:
// config object
calendar: {
height: 450,
editable: true,
displayEventTime: false,
// etc...
}
免责声明:我自己还没有尝试过。