alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 361 forks source link

<tr> and <td> attributes are dropped. #169

Open ogrotten opened 9 years ago

ogrotten commented 9 years ago

while building the and , any attributes that were in those elements are dropped.

CaptainCannabis commented 9 years ago

The standard rowWriter doesnt support that - you can overwrite it by using:

writers : {
           _rowWriter : function(rowIndex, record, columns, cellWriter){
            var h = '<li data-key="'+record.key+'">'+record.text+'</li>';
            return h;
    }
}