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?

Highlight Identifiable Rows
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Highlight Identifiable Rows
#57548
Highlight Identifiable Rows 7 Years, 12 Months ago Karma: 0
Hi,

Is it possible to highlight certain rows in any if the table types?
I have a attached a file with 25 rows annotating what I'd like to do.
Thanks in advance.

Regards,

Bob
File Attachment:
File Name: ARI_Headers.zip
File Size: 7270
Last Edit: 2016/04/28 09:03 By BobHyde.
The administrator has disabled public write access.
 
#57552
Re:Highlight Identifiable Rows 7 Years, 12 Months ago Karma: 747
Hello,

If "Advanced styling" parameter is set to "Yes" in module settings, each row will have the following CSS class:

ari-tbl-row-ROWINDEX

Wheren ROWINDEX is a zero based row index. It will be 0 (ari-tbl-row-0) for the first row, 1 for the second row (ari-tbl-row-1) and etc. It can be used to add custom styles for specific row(s). For example if want to use bold style for all columns in the second row, add the following code to "CSS Styles" parameter in module settings:

{$id} .ari-tbl-row-1 TD {font-weight:bold}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#57566
Re:Highlight Identifiable Rows 7 Years, 12 Months ago Karma: 0
Hi,
Thanks for quick response.

My understanding of the answer is that I would need to know all the rows that need annotating and then amend the css file accordingly.

Unfortunately I will only know which rows require annotating when the query is run to extract the data from the database.

Is there anyway I can invoke the css file if a record has a certain attribute.

Please see attached file for explanation.

Regards,

Bob
The administrator has disabled public write access.
 
#57570
Re:Highlight Identifiable Rows 7 Years, 12 Months ago Karma: 747
It is not possible to add a specific CSS class (CSS property) based on value in some column. If data are selected from a database, it is possible to use CASE construction to format data based on column value. For example:

SELECT
CASE
WHEN col1 = 'Header' THEN CONCAT('<b>', col1, '</b>')
ELSE col1
END AS col1
FROM
tbl

Regards,
ARI Soft
The administrator has disabled public write access.
 
#57577
Re:Highlight Identifiable Rows 7 Years, 11 Months ago Karma: 0
Hi,
Thanks.
That works a treat!!
Regards,
Bob
The administrator has disabled public write access.
 
Go to topPage: 1