|
17 | 17 | <div class="row form-inline g-3"> |
18 | 18 | <div class="col-12 col-sm-6"> |
19 | 19 | <BootstrapInputGroup> |
20 | | - <BootstrapInputGroupLabel>TabBarMode</BootstrapInputGroupLabel> |
21 | | - <Select @bind-Value="_tabBarMode"></Select> |
| 20 | + <BootstrapInputGroupLabel>Language</BootstrapInputGroupLabel> |
| 21 | + <Select @bind-Value="_language" Items="_languages"></Select> |
22 | 22 | </BootstrapInputGroup> |
23 | 23 | </div> |
24 | 24 | <div class="col-12 col-sm-6"> |
25 | 25 | <BootstrapInputGroup> |
26 | | - <BootstrapInputGroupLabel>Theme</BootstrapInputGroupLabel> |
27 | | - <Select @bind-Value="_theme"></Select> |
| 26 | + <BootstrapInputGroupLabel>TabBarMode</BootstrapInputGroupLabel> |
| 27 | + <Select @bind-Value="_tabBarMode"></Select> |
28 | 28 | </BootstrapInputGroup> |
29 | 29 | </div> |
30 | 30 | <div class="col-12 col-sm-6"> |
31 | 31 | <BootstrapInputGroup> |
32 | | - <BootstrapInputGroupLabel>EnableThumbnails</BootstrapInputGroupLabel> |
33 | | - <Switch @bind-Value="_enableThumbnails"></Switch> |
| 32 | + <BootstrapInputGroupLabel>Theme</BootstrapInputGroupLabel> |
| 33 | + <Select @bind-Value="_theme"></Select> |
34 | 34 | </BootstrapInputGroup> |
35 | 35 | </div> |
36 | 36 | <div class="col-12 col-sm-6"> |
37 | 37 | <BootstrapInputGroup> |
38 | | - <BootstrapInputGroupLabel>ShowPrint</BootstrapInputGroupLabel> |
39 | | - <Switch @bind-Value="_showPrint"></Switch> |
| 38 | + <BootstrapInputGroupLabel>ScrollStrategy</BootstrapInputGroupLabel> |
| 39 | + <Select @bind-Value="_strategy"></Select> |
40 | 40 | </BootstrapInputGroup> |
41 | 41 | </div> |
42 | | - <div class="col-12"> |
43 | | - <Button Color="Color.Primary" OnClick="@(() => _url = "./samples/sample.pdf")" class="me-2">sample-Url</Button> |
44 | | - <Button Color="Color.Primary" OnClick="@(() => _url = "./samples/ebook.pdf")" class="me-2">ebook-Url</Button> |
45 | | - <Button Color="Color.Danger" OnClick="GetSampleStream" class="me-2">Sample-Stream</Button> |
46 | | - <Button Color="Color.Danger" OnClick="GetTestStream">Sample2-Stream</Button> |
47 | | - </div> |
48 | 42 | </div> |
49 | 43 | </section> |
50 | | - <EmbedPDF Url="@_url" ViewHeight="600px" TabBarMode="_tabBarMode" Theme="_theme"></EmbedPDF> |
| 44 | + <EmbedPDF Url="@_url" ViewHeight="600px" Language="@_language" |
| 45 | + TabBarMode="_tabBarMode" Theme="_theme" ScrollStrategy="_strategy"></EmbedPDF> |
51 | 46 | </DemoBlock> |
0 commit comments