Chumper/Datatable — pull request #146 by niklasdevries (2014-08-02 00:22:17+00:00)
Title: integrated html5 data-attributes through rowData

At the moment it is only possible to set DT_RowId and DT_RowClass through setRowClass and setRowId.
There is also the option DT_RowData which adds html5 data-attributes to each row.

This option is very useful for passing eg. RowIDs to the client which we can then use in click events.
See http://datatables.net/manual/server-side#Returned-data for reference.

Note: if you're testing this feature, don't only inspect it via firebug for example.
The data-attributes are not visible, they are set via jquery data().
See the data with console.log($("#rowSelector").data());