Class MenuItemCollection
A menu item collection for a given tree node
Inheritance
System.Object
Namespace: Umbraco.Web.Models.Trees
Assembly: Umbraco.Web.dll
Syntax
[DataContract(Name = "menuItems", Namespace = "")]
public class MenuItemCollection
Constructors
View SourceMenuItemCollection()
Declaration
public MenuItemCollection()
MenuItemCollection(IEnumerable<MenuItem>)
Declaration
public MenuItemCollection(IEnumerable<MenuItem> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<MenuItem> | items |
Properties
View SourceDefaultMenuAlias
Sets the default menu item alias to be shown when the menu is launched - this is optional and if not set then the menu will just be shown normally.
Declaration
[DataMember(Name = "defaultAlias")]
public string DefaultMenuAlias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Empty
Declaration
public static MenuItemCollection Empty { get; }
Property Value
Type | Description |
---|---|
MenuItemCollection |
Items
The list of menu items
Declaration
[DataMember(Name = "menuItems")]
public MenuItemList Items { get; }
Property Value
Type | Description |
---|---|
MenuItemList |
Remarks
We require this so the json serialization works correctly