DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
221 stars 78 forks source link

DropDownMenuBuilder needs more methods like DropDownBuilder<TModel> #449

Open johnwc opened 7 years ago

johnwc commented 7 years ago

We need to be able to build the menu like we are able to with DropDown(""), but with standalone dropdown menu like so.

@Html.Bootstrap().DropDownMenu().MenuItems(m =>
{
    m.Link("Refresh", Url.RouteUrl("Refresh", new { id = Model.Id, name = Model.Name })).PrependIcon("fa fa-refresh").Tooltip("My tooltip.");
    m.Divider();
    ....
})

It would also be great if there was a RouteLink along side the Link method.

public BootstrapLink<TModel> RouteLink(string linkText, string routeName, object routeValues)