Class AbpViewComponentHelper
Inheritance
object
AbpViewComponentHelper
Implements
Microsoft.AspNetCore.Mvc.IViewComponentHelper
Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AspNetCore.Mvc.UI.Widgets
Assembly: Volo.Abp.AspNetCore.Mvc.UI.Widgets.dll
Syntax
[Dependency(ReplaceServices = true)]
public class AbpViewComponentHelper : IViewComponentHelper, IViewContextAware, ITransientDependency
Constructors
AbpViewComponentHelper(DefaultViewComponentHelper, IOptions<AbpWidgetOptions>, IPageWidgetManager)
Declaration
public AbpViewComponentHelper(DefaultViewComponentHelper defaultViewComponentHelper, IOptions<AbpWidgetOptions> widgetOptions, IPageWidgetManager pageWidgetManager)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper | defaultViewComponentHelper | |
| Microsoft.Extensions.Options.IOptions<TOptions><AbpWidgetOptions> | widgetOptions | |
| IPageWidgetManager | pageWidgetManager |
Properties
DefaultViewComponentHelper
Declaration
protected DefaultViewComponentHelper DefaultViewComponentHelper { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper |
Options
Declaration
protected AbpWidgetOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| AbpWidgetOptions |
PageWidgetManager
Declaration
protected IPageWidgetManager PageWidgetManager { get; }
Property Value
| Type | Description |
|---|---|
| IPageWidgetManager |
Methods
Contextualize(ViewContext)
Declaration
public virtual void Contextualize(ViewContext viewContext)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.ViewContext | viewContext |
InvokeAsync(string, object)
Declaration
public virtual Task<IHtmlContent> InvokeAsync(string name, object arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| object | arguments |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><Microsoft.AspNetCore.Html.IHtmlContent> |
InvokeAsync(Type, object)
Declaration
public virtual Task<IHtmlContent> InvokeAsync(Type componentType, object arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | componentType | |
| object | arguments |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><Microsoft.AspNetCore.Html.IHtmlContent> |
InvokeWidgetAsync(object, WidgetDefinition)
Declaration
protected virtual Task<IHtmlContent> InvokeWidgetAsync(object arguments, WidgetDefinition widget)
Parameters
| Type | Name | Description |
|---|---|---|
| object | arguments | |
| WidgetDefinition | widget |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><Microsoft.AspNetCore.Html.IHtmlContent> |
Implements
Microsoft.AspNetCore.Mvc.IViewComponentHelper
Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware