imballinst / react-bs-datatable

Bootstrap datatable without jQuery. Features include: filter, sort, pagination, checkbox, and control customization.
https://imballinst.github.io/react-bs-datatable
MIT License
60 stars 20 forks source link

feat: implement thProps in column definition #139

Closed imballinst closed 2 years ago

imballinst commented 2 years ago

Addresses https://github.com/imballinst/react-bs-datatable/issues/138. Example usage:

const headers: TableColumnType<Something>[] = [
  {
    prop: 'test',
    title: 'Test',
    thProps: {
      className: 'hello-world',
      'data-value-something': 'test'
    }
  }
]