DmitryEfimenko / TwitterBootstrapMvc

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

setting style for panel #383

Closed vanithav closed 9 years ago

vanithav commented 9 years ago

Hi,

I have an accordion with a panel. How do i set the style for the panel here.

@using (var a = Html.Bootstrap().Begin(new Accordion("DashboardItem").ActivePanel(1)))
{
    using (a.BeginPanel("Vendor"))
    { }
}

In the above i want to set the style of the panel to panel-success. How do i do this?

thanks, Vanitha

DmitryEfimenko commented 9 years ago

Currently this is not supported by BMVC. I'll put this for the next release

DmitryEfimenko commented 9 years ago

Addeed an overload to BeginPanel method that takes PanelStyle enum:

using (a.BeginPanel("Vendor", PanelStyle.Danger))
{ }

Please get latest.