Skip to content

Commit c529512

Browse files
committed
doc: 更新示例文档
1 parent 92062a5 commit c529512

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/BootstrapBlazor.Server/Components/Samples/Table/TablesColumn.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@
221221
<DemoBlock Title="@Localizer["ShowMoreButtonTitle"]" Introduction="@Localizer["ShowMoreButtonIntro"]" Name="ShowMoreButton">
222222
<section ignore>
223223
<p>@((MarkupString)Localizer["ShowMoreButtonDesc"].Value)</p>
224+
<p>@((MarkupString)Localizer["MoreButtonTextDesc"].Value)</p>
225+
<p>@((MarkupString)Localizer["MoreButtonColorDesc"].Value)</p>
224226
<Pre>&lt;MoreButtonDropdownTemplate&gt;
225227
&lt;DropdownItem Text="Action1" Icon="fa-solid fa-flag" OnClick="@@(() =&gt; OnAction(context, "Action1"))"&gt;&lt;/DropdownItem&gt;
226228
&lt;Divider&gt;&lt;/Divider&gt;

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5111,7 +5111,9 @@
51115111
"ColumnOrderIntro": "Set the order by setting the <code>Order</code> parameter of <code>TableColumn</code>",
51125112
"ShowMoreButtonTitle": "ShowMoreButton",
51135113
"ShowMoreButtonIntro": "By setting the <code>ShowMoreButton</code> parameter, a <b>More</b> button appears when the row expands. Furthermore, by setting the <code>MoreButtonDropdownTemplate</code> template, the dropdown menu options are customized. This design significantly reduces the amount of row space occupied.",
5114-
"ShowMoreButtonDesc": "<code>MoreButtonDropdownTemplate</code> Context <code>context</code> is the instance of the current row."
5114+
"ShowMoreButtonDesc": "<code>MoreButtonDropdownTemplate</code> Context <code>context</code> is the instance of the current row.",
5115+
"MoreButtonTextDesc": "Set the button's text using <code>MoreButtonText</code>",
5116+
"MoreButtonColorDesc": "Set the button color using <code>MoreButtonColor</code>"
51155117
},
51165118
"BootstrapBlazor.Server.Components.Samples.Table.TablesColumnDrag": {
51175119
"TablesColumnTitle": "Table Column",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5111,7 +5111,9 @@
51115111
"ColumnOrderIntro": "通过设置 <code>TableColumn</code> 的 <code>Order</code> 参数进行设置顺序",
51125112
"ShowMoreButtonTitle": "更多按钮",
51135113
"ShowMoreButtonIntro": "通过设置 <code>ShowMoreButton</code> 参数使行扩展按钮出现 <b>更多</b> 按钮,通过设置 <code>MoreButtonDropdownTemplate</code> 模板自定义下拉菜单选项,通过这样的设计大大减少行空间占用",
5114-
"ShowMoreButtonDesc": "<code>MoreButtonDropdownTemplate</code> 上下文 <code>context</code> 为当前行实例"
5114+
"ShowMoreButtonDesc": "<code>MoreButtonDropdownTemplate</code> 上下文 <code>context</code> 为当前行实例",
5115+
"MoreButtonTextDesc": "通过 <code>MoreButtonText</code> 设置按钮显示文本",
5116+
"MoreButtonColorDesc": "通过 <code>MoreButtonColor</code> 设置按钮颜色"
51155117
},
51165118
"BootstrapBlazor.Server.Components.Samples.Table.TablesColumnDrag": {
51175119
"TablesColumnTitle": "Table 表格",

0 commit comments

Comments
 (0)