-
Notifications
You must be signed in to change notification settings - Fork 103
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
AnalyticalTable: The width and the style of the columns cannot be used correctly #205
Comments
here are my first comments: Setting the width option on column levelThe CSS ClassesThis feature hasn't been implemented yet - we'll add that. Clicking a row twiceThis is intended - otherwise you wouldn't be able to deselect a column. As a general remark: We are using the v7 of react-table which is a headless table (without any UI) - but we try to have all features working that were working with the v6 version. |
Hi @MarcusNotheis! Thanks for the comments. About the issue related to the column with a text left-aligned and a button right-aligned, I've been analysing the source code and I would like to suggest a fix (a pull request). On the Cell.tsx file, if the Bellow is the code that I would like to suggest on the
I already have a branch for this, but before I submit a PR, I think that I need a |
Hi @CristianDDias, thanks for the offer, your proposal sounds very reasonable. Thanks for your support! |
The issue with not accepted style classes is fixed by #207 |
Hi @MarcusNotheis, I've tried some approaches to get rid of the If we used only the At the moment, I would like to submit a PR that would fix only the problem related to not use a |
Hi @CristianDDias, sure, you can just open a PR with your suggestion and then we can move on from there. |
Hi @CristianDDias, we applied some changes to Table Cell rendering and got rid of the Thanks! |
Hi @MarcusNotheis, Sorry for not submitting a PR before, I had some problems and couldn't prioritize this task :/ But I've tested it using the same Codesandbox example and it's working properly! Thank you! From my side, I think we could close this issue. |
No worries @CristianDDias, I'm pretty sure there will be another issue where you can submit a PR 😄 |
Describe the bug
In the
AnalyticalTable
component, the width and the style of the columns cannot be used correctly. For example:width: 20
, it's not using it.Besides that, when you click 2x on the same row, it loses the focus (selected row style).
To Reproduce
I created 2 Codesandbox examples, one using
ReactTable
(the same component used byAnalyticalTable
) and another one usingAnalyticalTable
.Both Codesandbox have the same idea, create a table with 600px width, create a column with a text left-aligned and a button right-aligned, and apply a CSS style to this column. But this is not possible by using the
AnalyticalTable
component. You can see that the width of the columns is different between both Codesandbox, but only theReactTable
Codesandbox seems right.Expected behavior
I think that adding
width: '100%'
in the tableCellContent class (AnayticalTable.jss.ts) would solve the width problem.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: