Data table render if

Data table render if

smoysmoy Posts: 1Questions: 1Answers: 0

Error:
**columns: [
{data: 'no'},
{
data: 'gambar_soal',
full : 'soal_pg',
render: function(data, full) {
if( data == null) {
return data;
}
else{
return full;
}
},
defaultContent : data;

}
]**:
IF not working:
full not workig:

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    The second parameter to columns.render is type, not full.

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.