public IEnumerable <Expression> Process( PropertyInfo prop, IEnumerable <Expression> expressions, Expression modelExpression) { return(expressions .Append(TR.WriteHtml("</i>")) .Prepend(TR.WriteHtml("<i>"))); }
public IEnumerable <Expression> Process( PropertyInfo prop, IEnumerable <Expression> expressions, Expression modelExpression) { return(expressions .Append(TR.WriteHtml("</span>")) .Prepend(TR.WriteHtml($"<span class=\"forceWidth\" style=\"max-width:{Width}em\">"))); }
public IEnumerable <Expression> Process( PropertyInfo prop, IEnumerable <Expression>?expressions, Expression modelExpression) { return(expressions .Prepend(TR.WriteHtml("\"></i> ")) .Prepend(TR.WriteText(TR.GetFormatted(Class, modelExpression))) .Prepend(TR.WriteHtml("<i class=\""))); }
public override IEnumerable <Expression> Process( PropertyInfo prop, IEnumerable <Expression>?expressions, Expression modelExpression) { return(new[] { TR.WriteHtml("<i class=\""), TR.WriteText(Class), TR.WriteHtml("\"></i>"), }); }
public IEnumerable <Expression> Process( PropertyInfo prop, IEnumerable <Expression> e, Expression modelExpression) { if (Url == null) { return(e); } var content = Url.Contains("{") ? TR.GetFormatted(Url, modelExpression) : Expression.Constant(Url); e = e.Append(TR.WriteHtml("</a>")); e = e.Prepend(TR.WriteHtml(Ajax != null ? $"\" data-toggle=\"ajaxWindow\" data-target=\"{Ajax}\">" : "\">")); e = e.Prepend(TR.WriteText(content)); e = e.Prepend(TR.WriteHtml("<a href=\"")); return(e); }