我有一个p:schedule
显示 2 种事件的。列表Events
中充满了Try
这样的方法:
//ResourceEvents
eventResourceAvailPerDay.addEvent(new DefaultScheduleEvent(reason, dateBeginConverted, dateEndConverted, "resource"));
//WaitingItemEvents
DefaultScheduleEvent newResourceEvent = new DefaultScheduleEvent(reason, dteBeginOrWaitingItem, dteEndOrWaitingItem, orWaitinglist.getWKey());
newResourceEvent.setStyleClass("waitingitem");
eventResourceAvailPerDay.addEvent(newResourceEvent);
2Events
具有上面创建的以下 css 类resource
:waitingitem
以下是我想要实现的目标: 在月视图中,我只希望waitingitem
类可见,因此隐藏resource
类,如果可能的话,还可以覆盖 JSP 2.0,这些事件(waitingitem
)是不可点击的。在 weekview 和 dayview 中只有resource
类应该是可见的
我已经有以下 css 代码,它没有给我想要的结果:
.waitingitem, .schedule .waitingitem .fc-view-month, .waitingitem a {
display: none;
}
.waitingitem, .schedule .waitingitem .fc-view-agendaWeek, .waitingitem a {
display: block!important;
}
.resource, .schedule .resource .fc-view-month, .resource a {
display: block;
}
.resource, .schedule .resource .fc-view-agendaWeek, .resource a {
display: none!important;
}
.resource, .schedule .resource .fc-view-agendaDay, .resource a {
display: none!important;
}
有什么建议么?
更新//工作CSS
schedule .fc-view-month .resource,
.schedule .fc-view-agendaWeek .resource,
.schedule .fc-view-agendaDay .resource,
.schedule .fc-view-agendaWeek .waitingitem
.schedule .fc-view-agendaDay .waitingitem
{
display: block;
}
.schedule .fc-view-month .waitingitem
{
display: none!important;
}