DmitryEfimenko / TwitterBootstrapMvc

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

Adding additional classes when using the tabs builder.... #401

Closed natiki closed 8 years ago

natiki commented 8 years ago

Hi,

I am using the tabs builder as per usual:

 using (TabsBuilder<IndexViewModel> tabs = Html.Bootstrap().Begin(new TwitterBootstrapMVC.Tabs("TabsId")))

and it emits the expected HTML of:

<div class="tabbable" id="TabsId">

however I want to add an additional class myClass to the div so that I end up with:

<div class="tabbable myClass" id="TabsId">

How do I achieve this?

DmitryEfimenko commented 8 years ago

Added extension methods .Class(), .HtmlAttributes(), .Data() to the class Tabs. Please get latest.

natiki commented 8 years ago

Hi Dimitry,

Thanks. Works perfectly.