(Blazor) I'm having trouble accessing a variable inside a parent component.
I'm trying to access a simple bool in a parent component that shows when my side bar has been collapsed. I'm using the Blazor Fluent UI components by the way.
Okay so I've got this FluentNavMenu:
Then I've got a parent component:
That binding sets the
There is also a component attribute I can add to the
I've watched this video around 10 times and I still can't wrap my head around it as this particular scenario seems different.
Thanks!
Okay so I've got this FluentNavMenu:
Then I've got a parent component:
That binding sets the
SideBarExpanded every time I open or close it. I need to access it in a parent component to hide something else. What's the best way to detect that this variable has changed in the parent?There is also a component attribute I can add to the
FluentNavMenu called ExpandedChanged which takes in an EventCallback, but I have no idea how to use it in the context of this particular component.I've watched this video around 10 times and I still can't wrap my head around it as this particular scenario seems different.
Thanks!