コード例 #1
0
 public static IHtmlString CheckBoxFor <TModel, TProperty>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, TProperty> > expression, bool isChecked, IDictionary <string, object> htmlAttributes)
 {
     return(CheckBox(helper, ExpressionHelper.GetExpressionText(expression), isChecked, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #2
0
 public static IHtmlString CheckBox <TModel>(this HtmlHelpers <TModel> helper, string name, bool isChecked, object htmlAttributes)
 {
     return(CheckBox(helper, name, isChecked, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #3
0
 public static IHtmlString TextArea <TModel>(this HtmlHelpers <TModel> helper, string name, object htmlAttributes)
 {
     return(TextArea(helper, name, null, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #4
0
 public static IHtmlString TextArea <TModel>(this HtmlHelpers <TModel> helper, string name, string value, int rows, int columns, object htmlAttributes)
 {
     return(TextArea(helper, name, value, rows, columns, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #5
0
 public static IHtmlString Hidden <TModel>(this HtmlHelpers <TModel> helper, string name, object value, object htmlAttributes)
 {
     return(Hidden(helper, name, value, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #6
0
 public static IHtmlString TextAreaFor <TModel>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, string> > expression, int rows, int columns, IDictionary <string, object> htmlAttributes)
 {
     return(TextArea(helper, ExpressionHelper.GetExpressionText(expression), expression.Compile()(helper.Model), rows, columns, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #7
0
 public static IHtmlString ListBox <TModel>(this HtmlHelpers <TModel> helper, string name, string defaultOption, IEnumerable <SelectListItem> selectList, object selectedValues, object htmlAttributes)
 {
     return(ListBox(helper, name, defaultOption, selectList, selectedValues, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #8
0
 public static IHtmlString HiddenFor <TModel, TProperty>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, TProperty> > expression, IDictionary <string, object> htmlAttributes)
 {
     return(Hidden(helper, ExpressionHelper.GetExpressionText(expression), expression.Compile()(helper.Model), TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #9
0
 public static IHtmlString DropDownList <TModel>(this HtmlHelpers <TModel> helper, string name, Enum options, Enum currentValue, object htmlAttributes)
 {
     return(DropDownList(helper, name, options, currentValue, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #10
0
 public static IHtmlString DropDownListFor <TModel, TProperty>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, TProperty> > expression, object htmlAttributes)
 {
     return(DropDownListFor(helper, expression, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #11
0
 public static IHtmlString RadioButton <TModel>(this HtmlHelpers <TModel> helper, string name, object value, bool isChecked, object htmlAttributes)
 {
     return(RadioButton(helper, name, value, isChecked, TypeHelper.ObjectToDictionary(htmlAttributes)));
 }
コード例 #12
0
 public static IHtmlString Label <TModel>(this HtmlHelpers <TModel> helper, string labelText, string labelFor, object attributes)
 {
     return(Label(helper, labelText, labelFor, TypeHelper.ObjectToDictionary(attributes)));
 }
コード例 #13
0
 public static IHtmlString LabelFor <TModel, TProperty>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, TProperty> > expression, IDictionary <string, object> htmlAttributes)
 {
     return(Label(helper, ExpressionHelper.GetExpessionDisplayName(expression), ExpressionHelper.GetExpressionText(expression), TypeHelper.ObjectToDictionary(htmlAttributes)));
 }