Hello
it is possible to skin events in schedule separately? For example if i have various categories of events - important, normal etc... -important event is red, normal blue...
thanks
<p:schedule value="#{tasksBean.eventModel}" editable="true" widgetVar="myschedule"
eventSelectListener="#{tasksBean.onEventSelect}"
dateSelectListener="#{tasksBean.onDateSelect}"
eventMoveListener="#{tasksBean.onEventMove}"
eventResizeListener="#{tasksBean.onEventResize}"
onEventMoveUpdate="messages,schedule" onEventResizeUpdate="messages,schedule"
theme="redmond" id="schedule">.business-event {
font-weight: bold;
font-style: italic;
}
.business-event > a {
background-color: red;
}
.fc-event,
.fc-agenda .fc-event-time,
.fc-event a {
border-style: solid;
border-color: #36c; /* default BORDER color (probably the same as background-color) */
background-color: #36c; /* default BACKGROUND color */
color: #fff; /* default TEXT color */
}
/* Use the 'className' CalEvent property and the following
* example CSS to change event color on a per-event basis:
*
* .myclass,
* .fc-agenda .myclass .fc-event-time,
* .myclass a {
* background-color: black;
* border-color: black;
* color: red;
* }
*/
.holiday-event,
.fc-agenda .holiday-event .fc-event-time,
.holiday-event a
{
font-weight: bold;
font-style: italic;
background-color: red;
border-color: red;
color: red;
}
<div id="globalform:myScheduler_container" class="fc ui-widget">
<div class="fc-content ui-widget-content" style="position: relative; min-height: 1px;">
<div class="fc-view fc-view-agendaWeek fc-agenda" style="position: relative;">
<div class="fc-agenda-head" style="position:relative;z-index:4">
<div class="fc-agenda-body" style="position: relative; z-index: 2; overflow: auto; height: 664px; width: 916px;">
<div style="position: relative; overflow: hidden;">
<table style="width: 899px;">
<div style="position: absolute; z-index: 8; top: 0pt; left: 0pt;">
<div class="fc-event fc-event-vert fc-corner-top fc-corner-bottom " style="position: absolute; z-index: 8; top: 587px; left: 61px; width: 107px; height: 40px;">
<div class="fc-event fc-event-vert fc-corner-top fc-corner-bottom " style="position: absolute; z-index: 8; top: 545px; left: 181px; width: 107px; height: 82px;">
<div class="fc-event fc-event-vert fc-corner-top fc-corner-bottom holiday-event ui-draggable ui-resizable" style="position: absolute; z-index: 8; top: 0px; left: 301px; width: 107px; height: 1004px;">
<a>
<span class="fc-event-bg"></span>
<span class="fc-event-time">12:00 - 11:59</span>
<span class="fc-event-title">Ferien1_5</span>
</a>
<div class="ui-resizable-handle ui-resizable-s">=</div>
</div>
</div>
</div>
</div>
.fc-event-vert span.fc-event-time {
border: 0 none;
font-size: 10px;
overflow: hidden;
white-space: nowrap;
}
.fc-event, .fc-agenda .fc-event-time, .fc-event a {
background-color: #3366CC;
border-color: #3366CC;
border-style: solid;
color: #FFFFFF;
}
.fc-event-vert span {
display: block;
position: relative;
z-index: 2;
}
.fc-event-time, .fc-event-title {
padding: 0 1px;
}
.public-event, .public-event .fc-event-skin, .public-event a{
background-color: green;
color: black;
border-color: greenyellow;
}
event = new DefaultScheduleEvent("public event", start, finish, "public-event");