Large tables
Large tables
Hey.
I have a large table that I need to process.
The process goes like a trafic light:
If the value is 0 - the td will be colored red.
If the value is 1 - the td will be colored yellow.
If the value is 2 - the td will be colored green.
other values - no color.
The following table:
A 1 B
2 1 0
B 2 C
Will look:
'No color' 'Yellow' 'No color'
'Green' 'Yellow' 'Red'
'No color' 'Green' 'No color'
I want it to be as efficient as possible.
I don't thing that it can be done via css or something like that.
I was thinking about going over the table each time that one will click 'next' button in the pagination section.
Is there any other way that will be more efficient?
If not - how do I change the way that the content would look like on every page move?
Thenks!
I have a large table that I need to process.
The process goes like a trafic light:
If the value is 0 - the td will be colored red.
If the value is 1 - the td will be colored yellow.
If the value is 2 - the td will be colored green.
other values - no color.
The following table:
A 1 B
2 1 0
B 2 C
Will look:
'No color' 'Yellow' 'No color'
'Green' 'Yellow' 'Red'
'No color' 'Green' 'No color'
I want it to be as efficient as possible.
I don't thing that it can be done via css or something like that.
I was thinking about going over the table each time that one will click 'next' button in the pagination section.
Is there any other way that will be more efficient?
If not - how do I change the way that the content would look like on every page move?
Thenks!
This discussion has been closed.