Class PdfViewerCommandManager
Represents the collection of commands and the corresponding key gestures. It is responsible for managing the routed commands.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.SfPdfViewer
Assembly: Syncfusion.Blazor.SfPdfViewer.dll
Syntax
public class PdfViewerCommandManager : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
CommandManager provides the support to define custom commands. The custom commands are Executed when the specified key gesture is recognized.
Constructors
PdfViewerCommandManager()
Declaration
public PdfViewerCommandManager()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type |
|---|
| RenderFragment |
Commands
Represents a collection of keyboard commands along with their corresponding action name.
Declaration
[Parameter]
[JsonPropertyName("commands")]
public List<KeyboardCommand> Commands { get; set; }
Property Value
| Type | Description |
|---|---|
| List<KeyboardCommand> | A collection of keyboard commands along with their corresponding key gestures. |
Remarks
This collection defines custom keyboard commands associated with specific key gestures.
mainParent
Gets or sets the base component reference for derived components.
Declaration
protected SfBaseComponent mainParent { get; set; }
Property Value
| Type |
|---|
| SfBaseComponent |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
OnAfterRenderAsync(bool)
Performs post-render updates to send command configuration to JavaScript when needed.
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | firstRender | True if first render; otherwise, false. |
Returns
| Type |
|---|
| Task |
Overrides
OnInitializedAsync()
Called by the framework to handle asynchronous component initialization.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |
Overrides
OnParametersSetAsync()
Called by the framework when parameters are set; updates the parent with the current command manager.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| Task |