Thursday, 5 February 2026

Adding colored Browse rows with the help of AI

Up until recently using nuBuilder developers have relied on Real Inteligence.

But now we can also use AI.


I asked Grok to make me a JS function that will color each row based on the HTML color in the last column - pretty useful right?

And it gave me this...


function color_rows() {

    // First: find the highest column index that exists

    let maxCol = -1;

    $('div[data-nu-column]').each(function() {

        let col = parseInt($(this).data('nu-column'));

        if (col > maxCol) maxCol = col;

    });

    // If no columns found, exit

    if (maxCol === -1) return;

    // Now only look at cells in the last column

    $('div[data-nu-column="' + maxCol + '"]').each(function() {

        let color = $(this).html().trim();

        // Skip empty or invalid

        if (!color) return;

        let row = $(this).data('nu-row');

        // Color the entire row

        $('div[data-nu-row="' + row + '"]').css('background-color', color);

    });

}.


When this is called in a Browse's Javascript...



You can get something like this...




AI is very useful doing things like this but humans will be to only ones that can really take advantage of nuBuilder. 

Until AI can use a mouse and see.