Schedule: how to customize the date color?

UI Components for JSF
Post Reply
ericmacau
Posts: 17
Joined: 09 Jun 2010, 06:22

25 Apr 2012, 09:50

Hello,

How can I change the color of the day in schedule component?

For example, I want to change those weekend days (Saturday and Sunday) to RED, how can I do?

I tried to override the ".fc-day-number" but it affect all the days. How can I only change the specific date?
Let's say 2012-05-05 is Saturday, I want to show the "5" in GREEN color.
How can I do that???

Currently all the day color is BLACK or GREY?


Please help!

Best regards,
Eric

User avatar
T.dot
Expert Member
Posts: 620
Joined: 01 Feb 2012, 15:39
Location: Vienna/Austria

25 Apr 2012, 10:02

Ah come on! Is it really so hard to read this first and follow the steps?
viewtopic.php?f=3&t=1194

And check out the generated html of the schedule! Rows have styleClasses like "fc-week0 fc-first". Columns like "fc-mon ui-widget-content fc-day1". If that's not enough extend the renderer.

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

26 Apr 2012, 04:39

Also, search google for following:

stackoverflow jquery fullcalendar date color
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

badhuman7
Posts: 78
Joined: 29 Mar 2012, 07:00

27 Apr 2012, 14:02

T.dot wrote:Ah come on! Is it really so hard to read this first and follow the steps?
viewtopic.php?f=3&t=1194

And check out the generated html of the schedule! Rows have styleClasses like "fc-week0 fc-first". Columns like "fc-mon ui-widget-content fc-day1". If that's not enough extend the renderer.
I didn't get you..can you just show us through coding. please.. :|


smithh032772 wrote:Also, search google for following:

stackoverflow jquery fullcalendar date color
I have checked everything...but its not possible....check out this Link...please... http://stackoverflow.com/questions/1034 ... e-selected

and usage of jquerty FullCalendar is not useful... :ugeek:
PrimeFaces-3.2,Tomcat-6.0, Java-6,Eclipse-Helios

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

27 Apr 2012, 14:06

Ah come on! Is it really so hard to read this first and follow the steps?
viewtopic.php?f=3&t=1194

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

27 Apr 2012, 14:08

oh and before I forget...

And check out the generated html of the schedule! Rows have styleClasses like "fc-week0 fc-first". Columns like "fc-mon ui-widget-content fc-day1". If that's not enough extend the renderer.

badhuman7
Posts: 78
Joined: 29 Mar 2012, 07:00

27 Apr 2012, 14:13

kukeltje wrote:Ah come on! Is it really so hard to read this first and follow the steps?
viewtopic.php?f=3&t=1194

I have already read this one.. :| and still i was not able to know why u r sending this link here..we are finding the solution ..i think soo.. :)
PrimeFaces-3.2,Tomcat-6.0, Java-6,Eclipse-Helios

User avatar
T.dot
Expert Member
Posts: 620
Joined: 01 Feb 2012, 15:39
Location: Vienna/Austria

28 Apr 2012, 22:31

Big *lol* @kukeljte

So this topic tells you to do the following things:
...
5) Always state the PrimeFaces version, JSF implementation name/version and the Server name/version information in your post. The best place for this information is your account signature as you don't need to provide it every time for a new post.
...
9) Sample code is much more useful than a paragraph of explanation, add your code encapsulated in a code formatter tag and add a screenshot to your posts if applicable.
...
http://catb.org/~esr/faqs/smart-questions.html
And I expect people to follow those steps. Otherwise I stop spending my time on such threads.

badhuman7
Posts: 78
Joined: 29 Mar 2012, 07:00

04 May 2012, 07:11

T.dot wrote: And check out the generated html of the schedule! Rows have styleClasses like "fc-week0 fc-first". Columns like "fc-mon ui-widget-content fc-day1". If that's not enough extend the renderer.
Can you just show some coding like showing these "fc-week0 fc-first". Columns like "fc-mon ui-widget-content fc-day1". :?:
PrimeFaces-3.2,Tomcat-6.0, Java-6,Eclipse-Helios

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

04 May 2012, 14:03

Is this a serious question?

As mentioned, these are css classes... If you this does not mean anything to you or you do knot have the basic knowledge to know how to certain plugins in browsers (or natively) can help you investigate this, I suggest finding another job.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests