Added support for setting description in CheckBoxFor() and RadioFor() extension methods
Using:
@using(var form = Html.Bootstrap().Form().Begin())
{
@form.CheckBoxFor(x => x.RememberMe, false) @*No label, but there is description. This method allows you to place text traditionally, after a tick.*@
}
Edit: Argh, i made an error: true instead of false
And error in a commit, because initially i wanted to add isNameInLabel parameter to CheckBoxFor method, but lately found that RadioFor is similar to that method and need this parameter too. I typed parameter for RadioFor using GitHub web editor and missed type of parameter. I will check code in future
Thanks! I had to fix one little thing: int isNameInLabel = true in the arguments list for RadioFor() didn't compile, but it was clear enough what the intent was.
Added support for setting description in CheckBoxFor() and RadioFor() extension methods Using:
Edit: Argh, i made an error:
true
instead offalse
And error in a commit, because initially i wanted to addisNameInLabel
parameter toCheckBoxFor
method, but lately found thatRadioFor
is similar to that method and need this parameter too. I typed parameter forRadioFor
using GitHub web editor and missed type of parameter. I will check code in future