Closed fsateler closed 7 years ago
For example, for Append, OverrideFieldHtml, InlineLabel and others it can be very useful to use the following:
Append
OverrideFieldHtml
InlineLabel
s.FieldFor(p => p.Prop).OverrideFieldHtml(@<span>Inline html <u>here</u>!</span>)
The implementation is simple:
public IFieldConfiguration OverrideFieldHtml(this IFieldConfiguration src, Func<object,IHtmlString> genHtml) { return src.OverrideFieldHtml(genHtml(null)); }
Cool idea! More than happy to accept pull requests for this.
For example, for
Append
,OverrideFieldHtml
,InlineLabel
and others it can be very useful to use the following:The implementation is simple: