retreiving table header

retreiving table header

charnoldcharnold Posts: 5Questions: 3Answers: 0

when the user selects a row, how can i retrieve the column header as an array, which can then be used with the row data as a JSON record?
i am using the .on( 'select' , function ( e, dt, type, indexes){ }) to get the data.

Answers

  • charnoldcharnold Posts: 5Questions: 3Answers: 0

    to clarify i want the entire header row as an array like that returned from "...row().data()"

  • sameeralikhansameeralikhan Posts: 17Questions: 1Answers: 2
    edited December 2015

    var api = new jQuery.fn.dataTable.Api( selector )

    api.settings()[0].aoColumns

This discussion has been closed.