コード例 #1
0
 /// <summary></summary>
 public static MvcHtmlString CheckboxList(this HtmlHelper htmlHelper, string name, IEnumerable <int> selectList, object htmlAttributes = null)
 {
     return(CheckboxList(htmlHelper, name, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
コード例 #2
0
        /// <summary></summary>
        public static MvcHtmlString EnumRadioListFor <TModel, TEnum>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TEnum> > expression, IDictionary <string, object> htmlAttributes)
        {
            IDictionary <string, string> selectList = OrionUtils.EnumToDictionary <TEnum>();

            return(RadioListFor(htmlHelper, expression, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
        }
コード例 #3
0
 /// <summary></summary>
 public static MvcHtmlString RadioListFor <TModel, TProperty, K, V>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, IDictionary <K, V> selectList, IDictionary <string, object> htmlAttributes)
 {
     return(RadioListFor(htmlHelper, expression, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }
コード例 #4
0
 /// <summary></summary>
 public static MvcHtmlString RadioListFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, IEnumerable <string> selectList, object htmlAttributes = null)
 {
     return(RadioListFor(htmlHelper, expression, HelperUtils.ToSelectListItem(selectList), htmlAttributes));
 }