Replies: 6 comments 14 replies
-
I'm not sure I follow. You want to use the detail panel but have no column for the button (which allows you to open said detail panel)? How are you going to open it? |
Beta Was this translation helpful? Give feedback.
-
Ultimately, I would say to keep this in the back of your mind. I wouldn't say this is a feature exactly, it's more of an abstraction to make it easier on the consumer. Due to the fact this doesn't resolve a critical bug, or add a feature to solve a critical issue, this will be put on the back burner for a little while.
Personally, I like the idea of "no magic" (or keeping things as un-opinionated as possible) internally, and allowing the user to accomplish things like this as you are currently accomplishing them. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I went to implement this and noticed that you added the conditional to Hopeful that your change would do the job, I first tried to pass in a falsy value for the DetailsPanel icon. Unfortunately, TS complains because the icons need to be wrapped in a forwardRef like so:
That prevents the icon from rendering, but the container button continues to render and take up space. We can't check for falsy The only practical way to achieve this is to add a prop such as
I'll create a PR for this. |
Beta Was this translation helpful? Give feedback.
-
@oze4 @Domino987 |
Beta Was this translation helpful? Give feedback.
-
#144 has been merged |
Beta Was this translation helpful? Give feedback.
-
The detail panel icon takes up about 1/2 to 2/3 of a regular column width. For situations with a large number of columns, I'd like to add an option to remove that column entirely.
I can set the icon to an empty component, but the column still exists and takes up space.
Additionally, I propose adding a prop to automatically expand the details panel on row click. This can currently be done using the
togglePanel()
param in the onRowClick callback. It would be convenient for a prop to take care of that automatically.@oze4 You had mentioned that there shouldn't be any new features added during the refactor. Is this a feature that I can add now, or will it have to wait?
Beta Was this translation helpful? Give feedback.
All reactions