DmitryEfimenko / TwitterBootstrapMvc

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

What is the approach to adding rows and columns (not table rows and cells) #335

Closed natiki closed 9 years ago

natiki commented 9 years ago

Hi,

I wanted to offset my buttons but could not find a BMVC way to do so. See highlighted area. Is there a better way to do this?

image

DmitryEfimenko commented 9 years ago

You won't find a "BMVC way" for every piece of functionality that Bootstrap offers. BMVC really shines when dealing with forms and does a good job on other major Bootstrap's components, but sometimes you'll just have to write plain html. This is one of these cases. There is no BMVC helper for a row. Nor there is anything for the offset. Keep in mind there is a helper @Html.Bootstrap().Div(), that might be useful in some other situations.

natiki commented 9 years ago

Bummer I would have figured

@Html.Bootstrap().Row().Col().SubmitButton().ActionLinkButton() would do the trick.... where the helper would add the closing tags as it unwound.

DmitryEfimenko commented 9 years ago

I'm not sure I understand the question... if it was a question...

natiki commented 9 years ago

It was a suggestion on implementation. It would be useful to be able to build all aspects of Bootstrap.