Class MudPageContentSection
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A section (nav link) inside the MudPageContentNavigation
public class MudPageContentSection
- Inheritance
-
MudPageContentSection
- Inherited Members
- Extension Methods
Constructors
MudPageContentSection(string, string)
create a new instance with a title and id and level set to zero
public MudPageContentSection(string title, string id)
Parameters
title
stringname of the section will be displayed in the navigation
id
stringid of the section. It will be appending to the current url, if the section becomes active
MudPageContentSection(string, string, int, MudPageContentSection?)
create a new instance with a title and id and level
public MudPageContentSection(string title, string id, int level, MudPageContentSection? parent)
Parameters
title
stringname of the section will be displayed in the navigation
id
stringid of the section. It will be appending to the current url, if the section becomes active
level
intThe level within the hierachy
parent
MudPageContentSectionThe parent of the section. null if there is no parent or no hierachy
Properties
Active
Indicating if the section is currently in the middle of the viewport
public bool Active { get; }
Property Value
Id
Id of the section. It will be appending to the current url, if the section becomes active
public string Id { get; set; }
Property Value
Level
public int Level { get; set; }
Property Value
LevelSortingValue
public int LevelSortingValue { get; }
Property Value
Parent
public MudPageContentSection? Parent { get; }
Property Value
Title
The Title of the section. This will be displayed in the navigation
public string Title { get; set; }
Property Value
Methods
Activate()
protected void Activate()
Deactive()
protected void Deactive()