Ejemplo n.º 1
0
 public static IHtmlContent CheckboxBoolean(this IHtmlHelper htmlHelper, string expression, string text, bool isChecked, object divHtmlAttributes, object inputHtmlAttributes, object labelHtmlAttributes)
 {
     return(SelectListHtmlGenerator.GenerateCheckboxBoolean(htmlHelper.ViewContext, null, expression, text, isChecked, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
 }
Ejemplo n.º 2
0
        public static IHtmlContent CheckboxBooleanFor <TModel, TResult>(this IHtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TResult> > expression, string text, object divHtmlAttributes, object inputHtmlAttributes, object labelHtmlAttributes)
        {
            var modelExpression = GetModelExpression(htmlHelper, expression);

            return(SelectListHtmlGenerator.GenerateCheckboxBoolean(htmlHelper.ViewContext, modelExpression.ModelExplorer, modelExpression.Name, text, null, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
        }