I have been evaluating the Ribbon control and the examples are good for getting started, but I could not find an example that implements navigation using the applicationMenu.
e.g. I want my application menu to contain 3 items, Home, Developer and Exit, and I want them to navigate between pages of the app, so in the ribbon I define these application menus:
.ApplicationMenuText("File").ApplicationMenu(applicationMenu =>
{
applicationMenu.Add().Text("Home").ImageUrl("/Images/bullet.png").UrlMapper("/Home");
applicationMenu.Add().Text("Developer").ImageUrl("/Images/bullet.png").UrlMapper("/Developer");
applicationMenu.Add().Text("Exit").ImageUrl("/Images/bullet.png").UrlMapper("/Exit");
})
I assume UrlMapper is used to control the link, since the applicationMenu does not have a ClientSideOnClick method, but when I look at the source, there is no mention of the url in the menu.
I even tried to put straight html in the text like below, but jquery seems to block the event.
applicationMenu.Add().Text("<a rel='nofollow' href='/Home'>Home</a>").ImageUrl("/Images/bullet.png");
Can someone please provide an example of how to use the Ribbon applicationMenu?
Regards, Laszlo