public static MvcHtmlString PasswordBind(this HtmlHelper htmlHelper, string name, object value, IDictionary <string, object> htmlAttributes) { var bind = new KnockoutBind(null, htmlAttributes); bind.AddBind("value", name); return(InputExtensions.Password(htmlHelper, name, value, bind)); }
public static MvcHtmlString TextBoxBindFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, object htmlAttributes) { var bind = new KnockoutBind(null, htmlAttributes); bind.AddBind("value", ExpressionHelper.GetExpressionText(expression)); return(InputExtensions.TextBoxFor(htmlHelper, expression, bind)); }
public static MvcHtmlString DropDownListBindFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, IEnumerable <SelectListItem> selectList, string optionLabel, object htmlAttributes) { var bind = new KnockoutBind(null, htmlAttributes); bind.AddBind("value", ExpressionHelper.GetExpressionText(expression)); return(SelectExtensions.DropDownListFor(htmlHelper, expression, selectList, optionLabel, bind)); }
public static MvcHtmlString TextBoxBind(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes) { var bind = new KnockoutBind(null, htmlAttributes); bind.AddBind("value", name); return(InputExtensions.TextBox(htmlHelper, name, value, bind)); }
public static MvcHtmlString DropDownListBind(this HtmlHelper htmlHelper, string name, IEnumerable <SelectListItem> selectList, string optionLabel, object htmlAttributes) { var bind = new KnockoutBind(null, htmlAttributes); bind.AddBind("value", name); return(SelectExtensions.DropDownList(htmlHelper, name, selectList, optionLabel, bind)); }