Updated MenuItemCollection with MenuItemList for full featured List access to the items. Added the MenuRendering event to TreeController, updated the tree controller events to be TypedEventHandler's though developers will need to cast the TreeController to the type they are expecting - still better than 'object'.

This commit is contained in:
Shannon
2013-10-03 15:05:48 +10:00
parent ed8f22c371
commit 936be3934b
14 changed files with 303 additions and 238 deletions

View File

@@ -33,7 +33,7 @@ namespace Umbraco.Web.UI.App_Plugins.MyPackage.Trees
protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
{
var menu = new MenuItemCollection();
menu.AddMenuItem(new MenuItem("create", "Create"));
menu.Add(new MenuItem("create", "Create"));
return menu;
}
}