Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Format: Color depending on value sign
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Format: Color depending on value sign
#56415
Format: Color depending on value sign 8 Years, 4 Months ago Karma: 0
First of all really great extension !!!!

I have a column which can be negative of positive and would like to format it as beow:
- If the column value is >0(positive), add a "+" to the value and set color to GREEN: Example +3.55
- If the column value is <0(negative), Set color to RED: Example -3.55

How can I do that please ???

Thanks for your feedback.
Last Edit: 2015/12/04 10:11 By tyner.
The administrator has disabled public write access.
 
#56417
Re:Format: Color depending on value sign 8 Years, 4 Months ago Karma: 748
Hello,

The extension doesn't support this ability.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#56418
Re:Format: Color depending on value sign 8 Years, 4 Months ago Karma: 0
OK then how to simply change the color of a column ? I think that it is possible right ?
The administrator has disabled public write access.
 
#56419
Re:Format: Color depending on value sign 8 Years, 4 Months ago Karma: 748
For example if want to change color of the second column in the 3rd row, set "Advanced styling" parameter to "Yes" in module settings and add the following code to "CSS Styles" parameter:

Code:


{$id} TBODY TR.ari-tbl-row-2 TD.ari-tbl-col-1 {color: red;}



If want to change color in the second column in all rows, place the following code to "CSS Styles" parameter:

Code:


{$id} TBODY TD.ari-tbl-col-1 {color: green;}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#56420
Re:Format: Color depending on value sign 8 Years, 4 Months ago Karma: 0
Perfect !

Thanks
The administrator has disabled public write access.
 
Go to topPage: 1