Example #1
0
        public static MenuItem Dropdown(string name, params MenuItem[] childItems)
        {
            var item = new MenuItem
            {
                Name = name,
                Type = "DropDown"
            };

            item._children.Clear();
            item._children.AddRange(childItems);
            return item;
        }