-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to show select column BUT hide selectAll #230
Comments
@vgoklani, there's no way to do it. but I can add a class on selectAll checkbox for you to hide, how about that? |
that should be perfect, thank you so much! |
@AllenFang Hi Allen, also a question for the row edit, if enable the deleteRow={true}, is it possible to call my custom function when the delete button is clicked? |
@eric379990, what's means for your custom function? you want a row deletion hook? |
@AllenFang I have 2 tables, user can select some items in the first table and add to the 2nd table, and also can delete some items in the 2nd table, the items needs to back to the 1st table. so I want to handle the item back actions in the onDelete function. |
function afterRowDelete(rowKeys) {
// rowKeys is the rowkeys which you delete
}
var options = {
afterDeleteRow: afterDeleteRow
}
//....
ReactDOM.render(
<BootstrapTable data={products} options={options}>
.....
); |
Thanks Allen, this helped a lot! |
@vgoklani, I've add the class |
Thanks @AllenFang for adding the react-bs-select-all class. Quick question - is there a way to dynamically set the "display: none" via React? I would prefer not to touch the .css/.less files if possible |
@vgoklani, sure, just give it a |
not following, how would I pass in the style to set display:none for the react-bs-select-all class from React? Thanks! |
@vgoklani, I got the wrong consideration. sorry for that. In this situation, the only way is modify the css file |
ok, thanks! |
I am having a difficult time hiding all select with react-bs-select-all class. Anyone can help me on how to accomplish that in css? The selector is not picking up the css. |
Firstly a big shout out to the owners and maintainers of this library, it is indeed a great one. @yasaiki : Below code shall work, just place it in your css (in case still not working then can try the above way aswell) Thanks. |
Hi, is there a way to show the select column (with the checkboxes) but hide the selectAll button at the top?
Thanks!
The text was updated successfully, but these errors were encountered: