Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Sørensen 304 posts 650 karma points
    May 16, 2016 @ 20:23
    Paul Sørensen
    0

    Custom section - parameters in menu items ?

    Hi

    I'm wondering if it's possible to have parameters with MenuItems in a Custom Section

    I have this where I would like to make the id available in my Angular's RouteParam

        protected override MenuItemCollection GetMenuForNode(string id, System.Net.Http.Formatting.FormDataCollection queryStrings)
        {
            var menu = new MenuItemCollection();
    
            var nodes = GetTreeNodes(id, queryStrings);
    
            int i = 0;
            if (Int32.TryParse(id, out i))
            {
                if (i > 9)
                {
                    var m = new MenuItem("createMatch", "Create match");
                    m.Icon = "enter";
                    menu.Items.Add(m);
                }
            }
    

    Is it possible in any way ?

    /Paul s

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies