Class TwentyViewAdapter<TModel>
Wraps an IHtmlBuilderRenderer<TModel> into an
Namespace: Eighty.AspNetCore.Mvc.ViewFeatures
Assembly: Eighty.AspNetCore.dll
Syntax
public class TwentyViewAdapter<TModel> : IView
Type Parameters
Name | Description |
---|---|
TModel | The model type |
Constructors
| Improve this Doc View SourceTwentyViewAdapter(String, IHtmlBuilderRenderer<TModel>)
Creates a TwentyViewAdapter<TModel>
Declaration
public TwentyViewAdapter(string path, IHtmlBuilderRenderer<TModel> view)
Parameters
Type | Name | Description |
---|---|---|
String | path | The view path |
IHtmlBuilderRenderer<TModel> | view | The view |
Properties
| Improve this Doc View SourcePath
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceRenderAsync(ViewContext)
Declaration
public Task RenderAsync(ViewContext context)
Parameters
Type | Name | Description |
---|---|---|
ViewContext | context |
Returns
Type | Description |
---|---|
Task |