DmitryEfimenko / TwitterBootstrapMvc

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

Feature request for Div helper #386

Closed speshulk926 closed 9 years ago

speshulk926 commented 9 years ago

I was wondering if we could get a feature added for offsets on the Div helper. I can do it through the Class right now, but for readability, it'd be nice to have them chain together. Example:

@(form.FormGroup().Class("row").CustomControls(
    Html.Bootstrap().Div(
        Html.Bootstrap().CheckBoxFor(x => x.AddressOutsideUS).Label()
    ).Sm(4).SmOffset(2),
    Html.Bootstrap().Div(
        Html.Bootstrap().TextBoxFor(x => x.AddressSameAsOther).Id("LoadExistingAddresses").Label()
    ).Sm(4))
)

http://getbootstrap.com/css/#grid-offsetting

DmitryEfimenko commented 9 years ago

This is done. Please get latest.

speshulk926 commented 9 years ago

Great! Works perfect.