skinning events separately in schedule

UI Components for JSF
uareurapid
Posts: 12
Joined: 04 Feb 2011, 13:15

30 Jan 2012, 02:23

@nickkvasov
That's the only approach that really worked for me..
thanks

By the way, this is a regression issue i think since i had this working before, and with 3.0RC2 and 3.0, at least, it was broken..

dingo12
Posts: 4
Joined: 28 Jun 2012, 12:59
Location: Poland

28 Jun 2012, 13:03

Hey!
U can use something like that.
Add your class to eventModel:

DefaultScheduleEvent evt = new DefaultScheduleEvent....
evt.setStyleClass("myclass");

and and this to css file:

.myclass,
.myclass div {
background-color: red;
border-color: red
color: blue;
}

darkhellkite
Posts: 1
Joined: 05 Jul 2012, 04:04

05 Jul 2012, 04:48

Because its html code like this:

<div class="fc-event fc-event-skin yourClass..." >
<div class="fc-event-inner fc-event-skin">
<span class="fc-event-title">XXXXXX</span>
</div>
</div>

All you have to do is override css style like following:

.fc-event-skin.youClass, .yourClass .fc-event-skin{
background-color: red;
border-color: red;
color: white;
}

it works for me, I hope this reply helps.

ifloor
Posts: 5
Joined: 31 Aug 2013, 06:38

02 Sep 2013, 16:25

Thank you very much, khames!
Your solution worked like a charm!
It's the easyest solution!.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests