Skip to content

Adding Properties and Events in Layout @Body #10230

Closed
@tsmccartan

Description

@tsmccartan

In the default Blazor App, is it possible to hide/show Menu Items in the NavMenu.razor (

) from a Button Click in the Index.razor file?

I don't know how to control the razor file that is loaded into the @Body area by default? I believe it has to do with the @route "/". I have data being loaded there with a selection list of items. And based on what the user chooses, I want to show/hide navigation items in the NavMenu.

Is this possible?
How do you determine the default razor page that is loaded in the @Body area of the layout?
If I add a component in the Layout you can add Parameters, etc. <Components "@MyParam"> /> but I don't know if this is possible with the default index.razor that is being loaded by default in the @Body?

Thanks,
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions