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


Recent Events
  • 18/11/2017 Black Friday is coming

    Don't wait BLACK FRIDAY, use FRIDAY17 coupon code to get 35% discount for all our extensions right now.

  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.


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 1 Year, 7 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 03:03 By BobHyde.
The administrator has disabled public write access.
 
#57552
Re:Highlight Identifiable Rows 1 Year, 7 Months ago Karma: 671
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 1 Year, 7 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 1 Year, 7 Months ago Karma: 671
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 1 Year, 7 Months ago Karma: 0
Hi,
Thanks.
That works a treat!!
Regards,
Bob
The administrator has disabled public write access.
 
Go to topPage: 1