Interface IViewProvider
Implemented by a subsystem that owns top-level views and can show them by id (e.g. the menu service, the composite-view service). A IViewRouter queries a set of providers to show any view by id without knowing which subsystem owns it.
Namespace: Serenity.Global.Application.Interfaces
Assembly: Serenity.Global.Application.dll
Syntax
public interface IViewProvider
Methods
HasView(string)
True when this provider owns a top-level view with the given id.
Declaration
bool HasView(string viewId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | viewId | The view id to test. |
Returns
| Type | Description |
|---|---|
| bool | True if this provider can show |
HideView(string)
Hides the view with the given id (no-op if it is not currently shown / unknown).
Declaration
void HideView(string viewId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | viewId | The id of the view to hide. |
ShowView(string)
Shows the view with the given id (assumes HasView(string) is true).
Declaration
void ShowView(string viewId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | viewId | The id of the view to show. |