You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdata=[{id: 1,name: 'Sofia',surname: 'Silva',message: 'This will only show when I click on the row, but I want to be able to search its contents'},...]
The hidden prop just made sense if you where using it to search that hidden column, since if you didnt include it, it wouldnt show anyway. One exception to this was the isKey column.
We can approach this in 2 different ways (and thats why im putting in discussion and not making a PR):
Make the hidden fields searchable again. This way, if you want to specify what columns you wants to change, you add them as hidden, if not, you just dont include them on ReactBootstrap table.
Or we can make a prop searchable to TableHeaderColumn, and we can specify what columns are searchable.
We have to be careful with the changes that we made, because some may break existing code (like in this case), and should had a major version bump instead of a minor.
What do you think?
The text was updated successfully, but these errors were encountered:
I prefer to take second solution, it's more better and I have planned to make search on hidden column configurable by this discussion
And version issue is a little bit tricky, because I have planned to bump a major version after new table structure(coming soon). if fixing this issue will bump major again. no idea, how do you think? ^^
Yes, the second solution its better. I was saying that commit 1f3798b was in fact a breaking change - my code stop working as it used to, and we should be careful when we do this kind of changes on minor versions :)
MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards-compatible manner, and
PATCH version when you make backwards-compatible bug fixes.
Hello @AllenFang
Regarding this commit 1f3798b
This implemented a breaking change.
Let's say we have an array of objects with
I would do something like:
The hidden prop just made sense if you where using it to search that hidden column, since if you didnt include it, it wouldnt show anyway. One exception to this was the
isKey
column.We can approach this in 2 different ways (and thats why im putting in discussion and not making a PR):
searchable
to TableHeaderColumn, and we can specify what columns are searchable.We have to be careful with the changes that we made, because some may break existing code (like in this case), and should had a major version bump instead of a minor.
What do you think?
The text was updated successfully, but these errors were encountered: