Models.PageMenu Class
Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Represents a page and its children, used by menu controls.
Constructor
PageMenu (Page page, IEnumerable<PageMenu> children, Boolean hasChildren)
Create a PageMenu instance
Properties
Children
Property
List of the page's children.
HasChildren
Property
Flag indicating whether the page represented by this PageMenu has child pages.
Page
Property
Reference to the page.
Methods
IsTopLevel
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
|