mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2025-12-06 15:29:09 +08:00
feat(PdfReader): add ShowToolbar parameter (#7203)
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
|
||||
<DemoBlock Title="@Localizer["PdfReaderNormalText"]" Introduction="@Localizer["PdfReaderNormalIntro"]" Name="Normal">
|
||||
<section ignore class="row form-inline g-3" style="--bb-input-group-label-width: 176px;">
|
||||
<div class="col-12 col-sm-6">
|
||||
<BootstrapInputGroup>
|
||||
<BootstrapInputGroupLabel>ShowToolbar</BootstrapInputGroupLabel>
|
||||
<Switch @bind-Value="_showToolbar"></Switch>
|
||||
</BootstrapInputGroup>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6">
|
||||
<BootstrapInputGroup>
|
||||
<BootstrapInputGroupLabel>ShowDownload</BootstrapInputGroupLabel>
|
||||
@@ -34,6 +40,7 @@
|
||||
</div>
|
||||
</section>
|
||||
<PdfReader Url="@_url" EnableThumbnails="_enableThumbnails"
|
||||
ShowTwoPagesOneView="_showTwoPagesOneView" ShowDownload="_showDownload" ShowPrint="_showPrint"
|
||||
ShowTwoPagesOneView="_showTwoPagesOneView" ShowDownload="_showDownload"
|
||||
ShowToolbar="_showToolbar" ShowPrint="_showPrint"
|
||||
ViewHeight="600px" OnDownloadAsync="OnDownloadAsync"></PdfReader>
|
||||
</DemoBlock>
|
||||
|
||||
@@ -20,6 +20,7 @@ public partial class PdfReaders
|
||||
private bool _showPrint = true;
|
||||
private bool _enableThumbnails = true;
|
||||
private bool _showDownload = true;
|
||||
private bool _showToolbar = true;
|
||||
private string _url = "./samples/sample.pdf";
|
||||
|
||||
private async Task OnDownloadAsync()
|
||||
|
||||
Reference in New Issue
Block a user