columns has data null config, how to config row().add() array/list

columns has data null config, how to config row().add() array/list

kimozikimozi Posts: 1Questions: 1Answers: 0
var tableOptions = {
 columns: [
   {'data': 'name'},
   {'data': null, defaultContent: 'button'}
 ]
}

var talbe = $("#example").DataTable(tableOptions )

table.row().add(
  {'name': 'test' }  ==> how to config  to add row that data is null?
)
This discussion has been closed.