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

Resize row height #314

Open
Dennis-N8 opened this issue Aug 20, 2023 · 1 comment
Open

Resize row height #314

Dennis-N8 opened this issue Aug 20, 2023 · 1 comment

Comments

@Dennis-N8
Copy link

Dennis-N8 commented Aug 20, 2023

Hi,

So I added support for multiple selection in Select column.

Now I have a few problems, one of them is how can I show all selected options in a cell?

Here in screenshot I have 4 options selected, but one of them is not visible.

image

@hussamkhatib
Copy link

You can use the rowHeight prop to figure out the height of the rows.
https://react-datasheet-grid.netlify.app/docs/api-reference/props/#rowheight

You can't achieve your desired behavior though, all the rows will have the same height including the rows with less tags.
The rowHeight prop does not accept a callback with rowData, instead just accepts a number which will be applied to all rows.
You won't be able to overide with CSS classes, as the rowHeight prop value will be used instead, which gets applied by inline styles.

I think, the only way is to make changes in the source code to support this.

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

No branches or pull requests

2 participants