Nucleus .Net Core CMS

Models.PageMenu Class

Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Represents a page and its children, used by menu controls.
PageMenu (Page page, IEnumerable<PageMenu> children, Boolean hasChildren)
Create a PageMenu instance
Parameters
Name Type
page Nucleus.Abstractions.Models.Page
children System.Collections.Generic.IEnumerable<Nucleus.Abstractions.Models.PageMenu>
hasChildren Boolean
List of the page's children.
Flag indicating whether the page represented by this PageMenu has child pages.
Reference to the page.
IsTopLevel ()
Gets whether this instance represents the "top level".
Returns
True, if this instance represents the top level, or false otherwise.
UpdateChildren (IEnumerable<PageMenu> children, Boolean hasChildren)
Update the children of this instance.
Parameters
Name Type
children System.Collections.Generic.IEnumerable<Nucleus.Abstractions.Models.PageMenu>
hasChildren Boolean