public override HtmlTag Build(ElementRequest request) { var value = request.StringValue().IsNotEmpty() ? request.StringValue() : ""; return new HtmlTag("textarea") .AddClasses("textArea") .Attr("name", request.ElementId) .Text(value); }
public override HtmlTag Build(ElementRequest request) { HtmlTag root = new HtmlTag("a"); root.Attr("href", "mailto:" + request.StringValue()); root.Attr("name", request.Accessor.FieldName + "Link"); root.Append(new HtmlTag("span").Text(request.StringValue())); return root; }
public override HtmlTag Build(ElementRequest request) { var date = request.StringValue().IsNotEmpty() ? DateTime.Parse(request.StringValue()).ToShortTimeString() : ""; return new TextboxTag().Attr("value", date).AddClass("timePicker"); }
public override HtmlTag Build(ElementRequest request) { return new HtmlTag("img").Attr("src", request.StringValue()).Attr("alt",request.Accessor.FieldName); }
public override HtmlTag Build(ElementRequest request) { var date = request.StringValue().IsNotEmpty() ? DateTime.Parse(request.StringValue()).ToShortTimeString() : ""; return new HtmlTag("span").Text(date); }
public static HtmlTag BuildTextbox(ElementRequest request) { return new TextboxTag().Attr("value", request.StringValue()); }
public static HtmlTag BuildTextboxKO(ElementRequest request) { var date = DateTime.Parse(request.StringValue()).ToShortDateString(); return new TextboxTag().Attr("value", date).AddClass("datePicker"); }