django-datatable icon indicating copy to clipboard operation
django-datatable copied to clipboard

Column attrs does not work with ajax

Open rodolphopivetta opened this issue 8 years ago • 1 comments

I'm trying to use attrs like this:

class MyTable(Table):
    field1 = Column(field='field1', header='field 1', attrs={'class': 'danger'})

    class Meta:
        model = MyModel
        ajax = True

and the attrs field is not added, but if I comment ajax = True in class Meta, it works.

rodolphopivetta avatar Mar 13 '16 16:03 rodolphopivetta

I can confirm this issue.

fgau avatar Jan 30 '17 22:01 fgau