Grouped List always renders expanded. #28521
-
|
Hi, is there any way to collapse all the groups in the GroupedList at start, because now after the first render the GroupedList opens all the groups. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Yes, you can make all the groups collapsed by default by settings Here's a Codepen example: https://codepen.io/seanms/pen/YzdqZMe?editors=0010 There's a lot going on in the Implementation section of |
Beta Was this translation helpful? Give feedback.
Yes, you can make all the groups collapsed by default by settings
isCollapsedtotruefor eachIGroup.Here's a Codepen example: https://codepen.io/seanms/pen/YzdqZMe?editors=0010
There's a lot going on in the Implementation section of
GroupedListso it's easy to miss but for more reference check out the implementation forIGroup: https://developer.microsoft.com/en-us/fluentui#/controls/web/groupedlist#implementation