# row (event)
The row event is triggered for each row object delivered to the grid view (before rendering).
Use this event to enhance the row with dynamic styles and/or calculated values.
function onRow(row){
    const {data, cells} = row;
    // calculated values
    cells.amount = 2000 * Math.random();
    cells.date = Date.now() - 500 * 86400000 * Math.random();
    // dynamic row style
    if (data.country == 'France'){
        row.class = 'bg-green';
    }
    // dynamic cell styles
    if (data.city == 'London'){
        cells.address = {class: 'circle'};
    }
    if (data.contactTitle == 'Owner'){
        cells.contact = {class: 'star'};
    }
}
