Skip to content

Commit 9bf6c46

Browse files
ArgoZhangvickyhcq
andauthored
doc(ExportPdfButton): update export sample code (#4958)
* chore: bump version 9.1.9-beat11 Co-Authored-By: vickyhcq <16112316+vickyhcq@users.noreply.github.com> * doc: 更新示例文档 * refactor: 移除内置样式 * doc: 增加样式设置示例 * revert: 撤销更新 * chore: bump version 9.1.9-beta10 --------- Co-Authored-By: vickyhcq <16112316+vickyhcq@users.noreply.github.com>
1 parent 04c56cc commit 9bf6c46

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor

+14-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,20 @@
2525
<DemoBlock Title="@Localizer["SelectorTitle"]" Introduction="@Localizer["SelectorIntro"]" Name="Selector">
2626
<section ignore class="table-9527-02">
2727
<GroupBox Title="@Localizer["GroupBoxTitle"]">
28-
<ValidateForm Model="@Model">
29-
<EditorForm TModel="Foo" ItemsPerRow="3">
30-
<FieldItems>
31-
<EditorItem @bind-Field="@context.Hobby" Items="@Hobbies" />
32-
</FieldItems>
33-
</EditorForm>
34-
</ValidateForm>
28+
<div class="row g-2 form-inline">
29+
<div class="col-12 col-sm-6">
30+
<Display Value="Model.Name" ShowLabel="true" DisplayText="Name"></Display>
31+
</div>
32+
<div class="col-12 col-sm-6">
33+
<Display Value="Model.Address" ShowLabel="true" DisplayText="Address"></Display>
34+
</div>
35+
<div class="col-12 col-sm-6">
36+
<Display Value="Model.DateTime" ShowLabel="true" DisplayText="DateTime"></Display>
37+
</div>
38+
<div class="col-12 col-sm-6">
39+
<Display Value="Model.Education" ShowLabel="true" DisplayText="Education"></Display>
40+
</div>
41+
</div>
3542
</GroupBox>
3643
</section>
3744
<ExportPdfButton Selector=".table-9527-02" IsAsync="true" OnBeforeExport="OnBeforeExport" OnAfterDownload="OnAfterDownload" AutoDownload="true" FileName="@PdfFileName"></ExportPdfButton>

0 commit comments

Comments
 (0)