Skip to content
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

Can we add a custom intermediate checkbox? #7

Closed
shashank1010 opened this issue Feb 11, 2021 · 3 comments
Closed

Can we add a custom intermediate checkbox? #7

shashank1010 opened this issue Feb 11, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@shashank1010
Copy link

It would be great if we can render a custom Intermediate checkbox component.
I have a react-table component in a project that implements material-ui and the native checkbox seems out of place.

@shashank1010 shashank1010 added the enhancement New feature or request label Feb 11, 2021
@sgratzl
Copy link
Owner

sgratzl commented Feb 11, 2021

one option would be to not use the default features but not using the featureRowSelect but implement a custom selection column

see also: https://github.com/sgratzl/lineup-lite/blob/main/packages/hooks/src/hooks/useRowSelectColumn.tsx

@shashank1010
Copy link
Author

I'm unsure of what you mean by not using featureRowSelect.
I thought about the custom selection column, but the functionality provided by useRowSelect from react-table is missing shift + select multiple rows.

Worst case scenario, I'll write a custom hook to implement the behaviour you have already build :)

@sgratzl
Copy link
Owner

sgratzl commented Feb 13, 2021

in the next release there will be a selectCheckboxComponent={MyCheckBox} property

@sgratzl sgratzl self-assigned this Feb 13, 2021
@sgratzl sgratzl closed this as completed Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants