data rendering

data rendering

qqashishqqashish Posts: 34Questions: 10Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
I am trying to create one column named <th>Status</th>

, whose value is determined by conditions on other column,

Like

if( data.value1 > 0 & data.value2){
return 'Placed';
}

where value1 , value 2 are from other columns.

Thanks

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599
    Answer ✓

    You can use columns.render for that - the third parameter is the data for the entire row,

    Colin

This discussion has been closed.