protected override HtmlTag BuildTag(ElementRequest request) { var label = LabelingConvention.GetLabelText(request.Accessor); return(Tags.Span .Text(label)); }
private static string GetText(FieldInfo field) { var descriptor = field.GetAttribute <DescriptionAttribute>(); if (descriptor != null) { return(descriptor.Description); } return(LabelingConvention.GetLabelText(field.Name)); }
public static HtmlTag Button(string name) { var text = LabelingConvention.GetLabelText(name); return(Tags.InputButton.Value(text).Id(name)); }