Render Data Table defaultContent

  datatable, javascript, laravel

`columns: [
{data: ‘no’},
{
data: ‘gambar_soal’,
full : ‘soal_pg’,
render: function(data, full) {
if( data == null) {
return data;
}
else{
return full;
}
},
defaultContent : data;

        }
            ]`

Source: Laravel

Leave a Reply