public static MvcHtmlString BuildTextArea(this HtmlHelper htmlHelper, string name, object value = null, Action <PFTextArea> action = null) { var component = new PFTextArea(); component.SetPropertyFor(htmlHelper, name); if (action != null) { action(component); } return(component.Html(htmlHelper, name, value)); }
public static MvcHtmlString BuildTextAreaFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, Action <PFTextArea> action = null) { var component = new PFTextArea(); component.SetPropertyFor(htmlHelper, expression); if (action != null) { action(component); } return(component.Html(htmlHelper, expression)); }