Add ShowToolbar parameter to SenderPdfImageEditor

Introduced a new `ShowToolbar` parameter to the `SenderPdfImageEditor` component, allowing external control over toolbar visibility. Updated the rendering logic to conditionally display the toolbar based on `ShowToolbar` and `PageCount`. Modified `CreateEnvelopeWizardPopup` to explicitly set `ShowToolbar` to `false` when using the `SenderPdfImageEditor` component.
This commit is contained in:
2026-11-30 12:59:26 +01:00
parent bf9895c9ba
commit bfe24bf766
2 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
@inject IJSRuntime JSRuntime
<div class="sender-image-editor-shell">
@if (PageCount > 0)
@if (ShowToolbar && PageCount > 0)
{
<div class="sender-image-editor__toolbar-host">
<SenderPdfImageEditorToolbar CurrentPage="@_currentPage"
@@ -161,6 +161,9 @@
[Parameter]
public bool ShowFieldRemoveButton { get; set; } = true;
[Parameter]
public bool ShowToolbar { get; set; } = true;
[Parameter]
public IReadOnlyCollection<int> HiddenFieldIndexes { get; set; } = Array.Empty<int>();