Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Custom color for "expired" table rows
spw2000
Junior Member

Posts: 5
Registered: 12/28/2007
Location: Australia
Member Is Offline
posted on 12/4/2008 at 12:54 AM Reply With Quote
Custom color for "expired" table rows


I use Tables Pro to display an events calendar in date order - I want to retain old events (ie older than today) but show them as "expired" or "past" by coloring the rows light grey - I suspect I have to add something to the color section in the template (see below) but how/where do I activate this new color using something like if rowdate > today then color: expired ???


'colors' : {
'even' : 'white',
'odd' : '#E8EFF5',
'hovered' : '#ffffcc',
'marked' : '#ffcc66',
'expired' : '#AAAAAA' <---- new entry ???

},

An extract from the content file (events.js) contains:
["2009-01-26", "26/01/2009", "Committee Meeting", "Events & Com Mtg", "St Kilda RSL"],
["2009-02-08", "8/2/2009", "Demonstration ", "St Kilda Festival", "St Kilda"],
["2009-02-02", "2/2/2009", "Social", "Social Weekend", "Torquay"],
["2009-02-14", "14/2/2009 to 15/2/2009", "Social and Competition", "Hookstock (2 days)", "TBA"],
["2009-02-23", "23/02/2009", "Committee Meeting", "Events & Com Mtg", "St Kilda RSL"],
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Simple
XP-styled
3D designed
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004