Class EightyViewAdapter<TModel>
Wraps an IHtmlRenderer<TModel> into an
Namespace: Eighty.AspNetCore.Mvc.ViewFeatures
Assembly: Eighty.AspNetCore.dll
Syntax
public class EightyViewAdapter<TModel> : IView
Type Parameters
Name | Description |
---|---|
TModel | The model type |
Constructors
| Improve this Doc View SourceEightyViewAdapter(String, IHtmlRenderer<TModel>)
Creates an EightyViewAdapter<TModel>
Declaration
public EightyViewAdapter(string path, IHtmlRenderer<TModel> view)
Parameters
Type | Name | Description |
---|---|---|
String | path | The view path |
IHtmlRenderer<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 |