• Resolved rftwkirk

    (@rftwkirk)


    I have read the topic here:
    https://www.ads-software.com/support/topic/highlight-a-row-based-on-value/

    However, I was wondering how to make two or three words the trigger for a row highlight?

    Currently, we are coding the table in CSS by row with code highlight like:

    .tablepress-id-1 .row-4 td {
    	background-color: black;
    	font-weight: normal;
    	color: white;

    But as we add or delete rows we have to go and change .row.

    What would be helpful is how can I trigger a row highlight, like above using a words like: Route Coordinator or Missing Man Coordinator? I need the trigger to be two or three words.

    Thanks!
    Kirk

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    That should not really be a problem. In that case, the CSS class will be highlight-route-coordinator or highlight-missing-man-coordinator.

    Regards,
    Tobias

    Thread Starter rftwkirk

    (@rftwkirk)

    So, to be clear. This is possible using the ‘highlight by a row based on value’ tablepress extension? Or are you suggesting this is different approach, not using that extension?

    As an example:
    My CSS code would be???:

    .tablepress .row-highlight-route-coordinator td {
    	background-color: black;
    	font-weight: normal;
    	color: white;
    • This reply was modified 5 years, 10 months ago by rftwkirk.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that should work.

    Regards,
    Tobias

    Thread Starter rftwkirk

    (@rftwkirk)

    Ok.. I am still not getting this to work. Do I need to use the plug-in or not? Can you please provide step-by-instructions to implementation?
    Thanks.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, you will need the Extension for this, as only that brings the actual highlighting functionality.
    For instructions please see the first reply in the link that you also posted, https://www.ads-software.com/support/topic/highlight-a-row-based-on-value/

    Regards,
    Tobias

    Thread Starter rftwkirk

    (@rftwkirk)

    Thank you for your help! You are wonderful! I have been able to get what I need to work. One last question…

    How can I get words with hyphens to be the row highlight trigger. For example, I need:

    “1st PLATOON — Side-by-Side”

    to trigger a row highlight.

    Thank you!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    as the first step, please try adding that as the highlight term, i.e.

    [table id=1 row_highlight="...||...||1st PLATOON — Side-by-Side" /]
    

    with your existing highlight terms. After that, I can see the necessary CSS class in the page HTML code.

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Highlight a Row Based on Value Question’ is closed to new replies.