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:
@@ -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>();
|
||||
|
||||
|
||||
@@ -409,7 +409,8 @@
|
||||
PdfFileName="@_documentFileName"
|
||||
Fields="Array.Empty<SenderPdfFieldOverlay>()"
|
||||
SignatureOverlays="Array.Empty<SenderPdfSignatureOverlay>()"
|
||||
ShowFieldRemoveButton="false" />
|
||||
ShowFieldRemoveButton="false"
|
||||
ShowToolbar="false" />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user