public async Task <IHtmlContent> InvokeDisplay(ContextualizedHelpers helpers, ModelExpression expression) { if (DisplayTemplate == null) { return(new HtmlString(string.Empty)); } return(await DisplayTemplate.Invoke(expression, this, helpers)); }
public async Task <IHtmlContent> InvokeDisplay(object o, ContextualizedHelpers helpers, string overridePrefix = null) { if (DisplayTemplate == null) { return(new HtmlString(string.Empty)); } return(await DisplayTemplate.Invoke( new ModelExpression(combinePrefixes(AdditionalPrefix, For.Name), For.ModelExplorer.GetExplorerForModel(o)), this, helpers, overridePrefix)); }
public async Task <IHtmlContent> InvokeDisplay(object o, string prefix, ContextualizedHelpers helpers) { if (DisplayTemplate == null) { return(new HtmlString(string.Empty)); } //await PrerenderInLineColumnTemplates(o, prefix, helpers); return(await DisplayTemplate.Invoke( new ModelExpression(prefix, For.ModelExplorer.GetExplorerForModel(o)), this, helpers)); }