File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 88
99<DemoBlock Title =" @Localizer[" PdfReaderNormalText " ]" Introduction =" @Localizer[" PdfReaderNormalIntro " ]" Name =" Normal" >
1010 <section ignore class =" row form-inline g-3" style =" --bb-input-group-label-width : 176px ;" >
11+ <div class =" col-12 col-sm-6" >
12+ <BootstrapInputGroup >
13+ <BootstrapInputGroupLabel >ShowToolbar</BootstrapInputGroupLabel >
14+ <Switch @bind-Value =" _showToolbar" ></Switch >
15+ </BootstrapInputGroup >
16+ </div >
1117 <div class =" col-12 col-sm-6" >
1218 <BootstrapInputGroup >
1319 <BootstrapInputGroupLabel >ShowDownload</BootstrapInputGroupLabel >
3440 </div >
3541 </section >
3642 <PdfReader Url =" @_url" EnableThumbnails =" _enableThumbnails"
37- ShowTwoPagesOneView =" _showTwoPagesOneView" ShowDownload =" _showDownload" ShowPrint =" _showPrint"
43+ ShowTwoPagesOneView =" _showTwoPagesOneView" ShowDownload =" _showDownload"
44+ ShowToolbar =" _showToolbar" ShowPrint =" _showPrint"
3845 ViewHeight =" 600px" OnDownloadAsync =" OnDownloadAsync" ></PdfReader >
3946</DemoBlock >
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public partial class PdfReaders
2020 private bool _showPrint = true ;
2121 private bool _enableThumbnails = true ;
2222 private bool _showDownload = true ;
23+ private bool _showToolbar = true ;
2324 private string _url = "./samples/sample.pdf" ;
2425
2526 private async Task OnDownloadAsync ( )
You can’t perform that action at this time.
0 commit comments