public static IHtmlContent CheckboxValueButton(this IHtmlHelper htmlHelper, string expression, string value, string text, bool isChecked, object inputHtmlAttributes = null, object labelHtmlAttributes = null) { return(SelectListHtmlGenerator.GenerateCheckboxValueButton(htmlHelper.ViewContext, null, expression, value, text, isChecked, inputHtmlAttributes, labelHtmlAttributes)); }
public static IHtmlContent CheckboxValueButtonFor <TModel, TResult>(this IHtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TResult> > expression, string value, string text, bool isChecked, object inputHtmlAttributes = null, object labelHtmlAttributes = null) { var modelExpression = GetModelExpression(htmlHelper, expression); return(SelectListHtmlGenerator.GenerateCheckboxValueButton(htmlHelper.ViewContext, modelExpression.ModelExplorer, modelExpression.Name, value, text, isChecked, inputHtmlAttributes, labelHtmlAttributes)); }