1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Highlight differences in row cells

Discussion in 'Community' started by jh, Mar 15, 2019.

  1. jh

    jh Member

    Level: Community
    Hi

    Is it possible to highlight differences in values of row elements ?

    eg row 1 - red, green, blue
    row 2 - red, blue, blue

    so highlight 'blue' in row 2 as it has changed from row 1.

    Thank you for any help.
     
  2. lousyfool

    lousyfool Active Member

    Level: Community
    Google "javascript compare table rows" or "... cells" or similar. If you don't find the perfect solution, at least you'll get tons of hints to piece the code together for your specific case.
     
  3. jh

    jh Member

    Level: Community
    Hi

    Thank you for pointing me to the right places, looks like Ive got some good sources to look at now.

    On a general note about the custom jscript file for fabrik I seem to be having a bit of trouble with general use. I have got it working for a details view (a script to hide empty dbjoin elements) so I think I have the general concept right. However I can not get any other codes to work even just small test codes. I have tried looking at codes from W3schools etc and tried a basic code like:

    function myFunction() {
    var element = document.getElementById("factory_table___factory_name");
    element.classList.add("mystyle");
    }

    Just to test but nothing is happening. Should I be using a different code somehow? Please excuse my novice level of knowledge, I am very much still learning so thank you for any help.

    Kind Regards
     

Share This Page