public KnockoutTagBuilder <TModel> TextArea(Expression <Func <TModel, object> > text, object htmlAttributes = null) { var tagBuilder = new KnockoutTagBuilder <TModel>(Context, "textarea", InstanceNames, Aliases); tagBuilder.ApplyAttributes(htmlAttributes); tagBuilder.Value(text); return(tagBuilder); }
private KnockoutTagBuilder <TModel> Input(Expression <Func <TModel, object> > text, string type, object htmlAttributes = null) { var tagBuilder = new KnockoutTagBuilder <TModel>(Context, "input", InstanceNames, Aliases); tagBuilder.ApplyAttributes(htmlAttributes); if (!string.IsNullOrWhiteSpace(type)) { tagBuilder.ApplyAttributes(new { type }); } if (text != null) { tagBuilder.Value(text); } tagBuilder.TagRenderMode = TagRenderMode.SelfClosing; return(tagBuilder); }