Skip to content

Conversation

Ymbere
Copy link
Contributor

@Ymbere Ymbere commented Oct 28, 2019

Improve #1135

Improves the solution provided on issue # 1135, instead of using a workaround its possible to provide the nonSelectableStyle and nonSelectableClasses directly

Style

const selectRow = {
  mode: 'checkbox',
  nonSelectable: [1, 3 ,5],
  nonSelectableStyle: { backgroundColor: 'gray' }
};

Class

const selectRow = {
  mode: 'checkbox',
  nonSelectable: [1, 3 ,5],
  nonSelectableClasses: 'my-class'
};

{
"name": "react-bootstrap-table2-editor",
"version": "1.3.2",
"version": "1.4.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't bump the version, I bump the version though lerna when I released, please revert this change.

{
"name": "react-bootstrap-table2-filter",
"version": "1.1.12",
"version": "1.2.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, don't bump the version

{
"name": "react-bootstrap-table2-paginator",
"version": "2.0.8",
"version": "2.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, don't bump the version

{
"name": "react-bootstrap-table2-toolkit",
"version": "2.0.1",
"version": "2.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, don't bump the version

{
"name": "react-bootstrap-table-next",
"version": "3.1.9",
"version": "3.2.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, don't bump the version

@AllenFang
Copy link
Member

HI @Ymbere thanks for your contributions, it's a great start for you. Overall for me the implementation is good but I have some comments, please fix it then I will merge your code. Thanks

BTW, please also rebase you code

Add new props to the bootstrap-table, nonSelectableStyle and
nonSelectableClasses

Update row-consume in order to support custom styles and classes
for non selectable rows
Add `nonSelectableStyle` documentation
Add `nonSelectableClasses` documentation
@AllenFang
Copy link
Member

HI @Ymbere I appreciate your hard work, it's awesome, thank a million lots~

@AllenFang AllenFang merged commit e667317 into react-bootstrap-table:develop Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants