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))); }
public static IHtmlString CheckBox <TModel>(this HtmlHelpers <TModel> helper, string name, bool isChecked, object htmlAttributes) { return(CheckBox(helper, name, isChecked, TypeHelper.ObjectToDictionary(htmlAttributes))); }
public static IHtmlString TextArea <TModel>(this HtmlHelpers <TModel> helper, string name, object htmlAttributes) { return(TextArea(helper, name, null, TypeHelper.ObjectToDictionary(htmlAttributes))); }
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))); }
public static IHtmlString Hidden <TModel>(this HtmlHelpers <TModel> helper, string name, object value, object htmlAttributes) { return(Hidden(helper, name, value, TypeHelper.ObjectToDictionary(htmlAttributes))); }
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))); }
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))); }
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))); }
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))); }
public static IHtmlString DropDownListFor <TModel, TProperty>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, TProperty> > expression, object htmlAttributes) { return(DropDownListFor(helper, expression, TypeHelper.ObjectToDictionary(htmlAttributes))); }
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))); }
public static IHtmlString Label <TModel>(this HtmlHelpers <TModel> helper, string labelText, string labelFor, object attributes) { return(Label(helper, labelText, labelFor, TypeHelper.ObjectToDictionary(attributes))); }
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))); }