Allow only ONE SubComponent to be expanded #3375
-
I have a use case that my SubComponents have a significant height and opening more than one completely ruins the user experience. I'd like a way to collapse a previously expanded SubComponent whenever a user opens a second one. I have tried many ways using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out after a bit of digging.
|
Beta Was this translation helpful? Give feedback.
I figured it out after a bit of digging.
If anyone needs this, I think it is an OK solution.
I have overridden the default
onClick
supplied byrow.getToggleRowExpandedProps()
and close all subComponents before opening a new one.