Beispiel #1
0
 public static IHtmlContent RadioValueButton(this IHtmlHelper htmlHelper, string expression, string value, string text, bool isChecked = false, object inputHtmlAttributes = null, object labelHtmlAttributes = null)
 {
     return(SelectListHtmlGenerator.GenerateRadioValueButton(htmlHelper.ViewContext, null, expression, value, text, isChecked, inputHtmlAttributes, labelHtmlAttributes));
 }
Beispiel #2
0
 public static IHtmlContent RadioButtonList(this IHtmlHelper htmlHelper, string expression, bool groupRadioButtons = true, IEnumerable <SelectListItem> items = null, object divHtmlAttributes = null, object inputHtmlAttributes = null, object labelHtmlAttributes = null)
 {
     return(SelectListHtmlGenerator.GenerateRadioValueButtonList(htmlHelper.ViewContext, null, expression, items, groupRadioButtons, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
 }
Beispiel #3
0
        public static IHtmlContent RadioValueButtonFor <TModel, TResult>(this IHtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TResult> > expression, string value, string text, object inputHtmlAttributes = null, object labelHtmlAttributes = null)
        {
            var modelExpression = GetModelExpression(htmlHelper, expression);

            return(SelectListHtmlGenerator.GenerateRadioValueButton(htmlHelper.ViewContext, modelExpression.ModelExplorer, modelExpression.Name, value, text, null, inputHtmlAttributes, labelHtmlAttributes));
        }
Beispiel #4
0
 public static IHtmlContent RadioValue(this IHtmlHelper htmlHelper, string expression, bool inline, string value, string text, bool isChecked, object divHtmlAttributes, object inputHtmlAttributes, object labelHtmlAttributes)
 {
     return(SelectListHtmlGenerator.GenerateRadioValue(htmlHelper.ViewContext, null, expression, inline, value, text, isChecked, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
 }
Beispiel #5
0
        public static IHtmlContent RadioButtonListFor <TModel, TResult>(this IHtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TResult> > expression, bool group = true, IEnumerable <SelectListItem> items = null, object divHtmlAttributes = null, object inputHtmlAttributes = null, object labelHtmlAttributes = null)
        {
            var modelExpression = GetModelExpression(htmlHelper, expression);

            return(SelectListHtmlGenerator.GenerateRadioValueButtonList(htmlHelper.ViewContext, modelExpression.ModelExplorer, modelExpression.Name, items, group, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
        }
Beispiel #6
0
 public static IHtmlContent CheckboxButtonList(this IHtmlHelper htmlHelper, string expression, bool group, IEnumerable <SelectListItem> items = null, object spanHtmlAttributes = null, object inputHtmlAttributes = null, object labelHtmlAttributes = null)
 {
     return(SelectListHtmlGenerator.GenerateCheckboxValueButtonList(htmlHelper.ViewContext, null, expression, items, group, spanHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
 }
Beispiel #7
0
        public static IHtmlContent CheckboxValueFor <TModel, TResult>(this IHtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TResult> > expression, bool inline, string value, string text, bool isChecked, object divHtmlAttributes = null, object inputHtmlAttributes = null, object labelHtmlAttributes = null)
        {
            var modelExpression = GetModelExpression(htmlHelper, expression);

            return(SelectListHtmlGenerator.GenerateCheckboxValue(htmlHelper.ViewContext, modelExpression.ModelExplorer, modelExpression.Name, inline, value, text, isChecked, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
        }
Beispiel #8
0
 public static IHtmlContent CheckboxList(this IHtmlHelper htmlHelper, string expression, bool inline = true, IEnumerable <SelectListItem> items = null, object divHtmlAttributes = null, object inputHtmlAttributes = null, object labelHtmlAttributes = null)
 {
     return(SelectListHtmlGenerator.GenerateCheckboxValueList(htmlHelper.ViewContext, null, expression, inline, items, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
 }
Beispiel #9
0
 public static IHtmlContent CheckboxBooleanButton(this IHtmlHelper htmlHelper, string expression, string text, bool isChecked, object divHtmlAttributes, object inputHtmlAttributes, object labelHtmlAttributes)
 {
     return(SelectListHtmlGenerator.GenerateCheckboxBooleanButton(htmlHelper.ViewContext, null, expression, text, isChecked, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
 }
Beispiel #10
0
        public static IHtmlContent CheckboxBooleanButtonFor <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.GenerateCheckboxBooleanButton(htmlHelper.ViewContext, modelExpression.ModelExplorer, modelExpression.Name, text, null, divHtmlAttributes, inputHtmlAttributes, labelHtmlAttributes));
        }