java - Hiding events in p:schedule with css -


i hava p:schedule shows 2 sorts of events. list events filled try method this:

//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); 

the 2events has following css-classes created above: resource, waitingitem

the following trying achieve: in month view want waitingitem class visible, hiding resource class, if possible override jsp 2.0 these events(waitingitem) non-clickable. in weekview , dayview resource class should visible

i have following css code not give me result want:

.waitingitem, .schedule .waitingitem .fc-view-month, .waitingitem {     display: none; } .waitingitem, .schedule .waitingitem .fc-view-agendaweek, .waitingitem {     display: block!important; } .resource, .schedule .resource .fc-view-month, .resource {     display: block; } .resource, .schedule .resource .fc-view-agendaweek, .resource {     display: none!important; } .resource, .schedule .resource .fc-view-agendaday, .resource {     display: none!important; } 

any suggestions?

update //working 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; } 

you can try :

#id-of-a-parent .fc-view-month .resource, #id-of-a-parent .fc-view-agendaweek .waitingitem, #id-of-a-parent .fc-view-agendaday .waitingitem {     display: none; }  #id-of-a-parent .fc-view-month .waitingitem, #id-of-a-parent .fc-view-agendaweek .resource, #id-of-a-parent .fc-view-agendaday .resource {     display: block; } 

note : #id-of-a-parent can ever want, make rules more important.

does make sense? still can't test on setup.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -