Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Hello, I´m looking for a way to find out if a SectionOutlet has content.
It could be really helpful to determine if a section has been populated to structure the overall layout.
Describe the solution you'd like
First option
<SectionOutlet SectionName="SubMenu">
<NoContent> The content you can set when no Section has been set </NoContent>
</SectionOutlet>
Second option
@if(_hasContent){
<DoStuff/>
}
<SectionOutlet @ref="_section" SectionName="SubMenu">
<NoContent> The content you can set when no Section has been set </NoContent>
</SectionOutlet>
@code{
private SectionOutlet _section;
private bool _hasContent => _section.Content is not null;
}
Additional context
No response
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Hello, I´m looking for a way to find out if a SectionOutlet has content.
It could be really helpful to determine if a section has been populated to structure the overall layout.
Describe the solution you'd like
First option
Second option
@if(_hasContent){ <DoStuff/> } <SectionOutlet @ref="_section" SectionName="SubMenu"> <NoContent> The content you can set when no Section has been set </NoContent> </SectionOutlet> @code{ private SectionOutlet _section; private bool _hasContent => _section.Content is not null; }Additional context
No response