Skip to content

Commit

Permalink
New: DT_RowAttr special parameter for row data to be able to set ab…
Browse files Browse the repository at this point in the history
…stract parameters for the row. This compliments the exisiting `DT_RowId`, `DT_RowClass` and `DT_RowData` parameters.

Thanks to Jifer in thread 24534 for this suggestion
  • Loading branch information
Allan Jardine committed Nov 12, 2014
1 parent 9911d1b commit f7bf0d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/core/core.draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ function _fnRowAttributes( row )
.addClass( data.DT_RowClass );
}

if ( data.DT_RowAttr ) {
$(tr).attr( data.DT_RowAttr );
}

if ( data.DT_RowData ) {
$(tr).data( data.DT_RowData );
}
Expand Down

0 comments on commit f7bf0d1

Please sign in to comment.