AllenFang / AllenFang/react-bootstrap-table

Extend filters to allow html attributes to be passed down

Open
#1,715 1 comment 0 reactions 0 assignees View on GitHub
help wanted in progress
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

Description

Hello.
Currently it appears there is no way to add an html attribute to the underlying markup that is generated by the built-in filters such as ``.

My use-case would be adding an `id`, `data`, or `aria` attribute to the html elements such as a ``.

Attributes are passed to the component in the JSX. https://github.com/AllenFang/react-bootstrap-table/blob/281db991c08f1d4cad2c522b13875a97d2e27e0f/src/TableHeaderColumn.js#L70

But they aren't shared with the HTML elements. https://github.com/AllenFang/react-bootstrap-table/blob/281db991c08f1d4cad2c522b13875a97d2e27e0f/src/filters/Select.js#L98-L104

I'm happy to submit a PR if you agree with the use.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.