Skip to content
This repository has been archived by the owner on Jan 11, 2018. It is now read-only.

Update CheckBoxFor() and RadioFor() extensions #51

Merged
merged 1 commit into from
Jan 7, 2016
Merged

Update CheckBoxFor() and RadioFor() extensions #51

merged 1 commit into from
Jan 7, 2016

Conversation

snipervld
Copy link
Contributor

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

Added support for setup description in CheckBoxFor() and RadioFor() extension methods
@daveaglick daveaglick merged commit e227019 into daveaglick:develop Jan 7, 2016
daveaglick added a commit that referenced this pull request Jan 7, 2016
@daveaglick
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants