mattiash / angular-tablesort

Sort angularjs tables easily
MIT License
184 stars 66 forks source link

New option to wrap the table with an element #85

Closed ChrisMBarr closed 7 years ago

ChrisMBarr commented 7 years ago

Certain libraries like Bootstrap allow for tables to become responsive when at a smaller screen size by wrapping it in a table-reponsive class. If this is desired on a table using angular-tablesort this can become and issue if the filtering or pagination are used since they will also be inside of this wrapping element, which will cause some display issues.

This PR allows this to be configured globally with the wrappingElementClass configuration option, or per-table with the ts-wrapping-element-class attribute