drvic10k / bootstrap-sortable

adding sorting ability to bootstrap table
MIT License
513 stars 131 forks source link

Add class to sorted column cells #47

Closed mminer closed 10 years ago

mminer commented 10 years ago

In a table I was sorting I wanted to highlight the sorted column — set the <th> to bold, apply a background colour to the <td>s, and so forth. I added a class to each cell to achieve this. Ideally the class name would be configurable by passing an argument to $.bootstrapSortable, but I'll start with this commit.

drvic10k commented 10 years ago

this is a good idea, but I think that there's no need to configure the class name if the class name conflicts with a class you already use, you can use a more specific selector in your css

mminer commented 10 years ago

That's true, any conflicts would be easy to avoid.