Repository navigation
Nav Expanded Parameter Missing in v5 #5383
|
In v5, I'm missing the "Expanded" parameter for the "Nav" component. |
Replies: 3 comments 7 replies
|
In v5 (checked against 5.0.1 on Per category: <FluentNav @ref="nav" UseSingleExpanded="true">
<FluentNavCategory Id="settings" Title="Settings" @bind-Expanded="settingsOpen">
...
</FluentNavCategory>
</FluentNav>
@code {
FluentNav nav = default!;
bool settingsOpen = true;
}From code, on the nav: If you meant the v4 |
|
As shwetank gupta (@shwetankg07) says, in v5 you can programmatically expand/collapse nav categories (there is an example of that on the Nav page). The v5 components follow the Fluent Design and the Fluent UI React components closer than the v4 components did. The Fluent Design Nav specs do not describe an 'icon only' layout as an option so that is why we have not migrated over this functionality |
As shwetank gupta (@shwetankg07) says, in v5 you can programmatically expand/collapse nav categories (there is an example of that on the Nav page).
The v5 components follow the Fluent Design and the Fluent UI React components closer than the v4 components did. The Fluent Design Nav specs do not describe an 'icon only' layout as an option so that is why we have not migrated over this functionality