You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds the `subComponentsBehavior` prop which accepts the
`AnalyticalTableSelectionBehavior` enum.
It enables controlling how subcomponents should be rendered and if they
should be considered when calculating the initial table body height.
`alwaysShowSubComponent` has been deprecated in favor of
`subComponentsBehavior`.
Fixes#3862
---------
Co-authored-by: Marcus Notheis <[email protected]>
Adding custom subcomponents below table rows can be achieved by setting the `renderRowSubComponent` prop.
279
-
The prop expects a function with an optional parameter containing the `row` instance, there you can control which row should display subcomponents. If you want to display the subcomponent at the bottom of the row without an expandable container, you can set the `alwaysShowSubComponent` prop to `true`.
279
+
The prop expects a function with an optional parameter containing the `row` instance, there you can control which row should display subcomponents. If you want to display the subcomponent at the bottom of the row without an expandable container, you can set `subComponentsBehavior` prop to `"Visible"` or to `"IncludeHeight"`. "Visible" simply adds the subcomponent to the row without including its height in the initial calculation of the table body, whereas "IncludeHeight" does.
280
280
281
281
### Notes
282
282
283
283
- When `renderRowSubComponent` is set, `grouping` is disabled.
284
284
- When rendering active elements inside the subcomponent, make sure to add the `data-subcomponent-active-element' attribute, otherwise focus behavior won't be consistent.
0 commit comments