Skip to content

Commit 5d96376

Browse files
authored
doc(Tab): add ShowTabInHeader documentation (#5785)
* doc: 增肌 ShowTabInHeader 参数说明 * doc: 增加 Tips 说明
1 parent d4be7a8 commit 5d96376

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<div>@((MarkupString)Localizer["TabsTips3"].Value)</div>
1919
</p>
2020
<p>@Localizer["TabsTips4"]</p>
21+
<div>@((MarkupString)Localizer["ShowTabInHeaderDesc"].Value)</div>
2122
</Tips>
2223

2324
<p class="code-label">@Localizer["TabsInfoTitle"]</p>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,8 @@
21542154
"AttributeContextMenuCloseOtherIcon": "the icon of tab item context menu close other button",
21552155
"AttributeContextMenuCloseAllIcon": "the icon of tab item context menu close all button",
21562156
"AttributeContextMenuFullScreenIcon": "the icon of tab item context menu full screen button",
2157-
"AttributeOnBeforeShowContextMenu": "before popup context menu callback"
2157+
"AttributeOnBeforeShowContextMenu": "before popup context menu callback",
2158+
"ShowTabInHeaderDesc": "After enabling the multi-tab function in the <code>Layout</code> component, you can render the <code>Tab</code> tag header into the <code>Layout</code> Header template by setting <code>ShowTabInHeader=\"true\"</code>. The effect can be viewed by creating a new project in the <a href=\"template\" target=\"_blank\">Project Template</a>"
21582159
},
21592160
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21602161
"Info": "Reset the title of this <code>TabItem</code> by click the button",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,8 @@
21542154
"AttributeContextMenuCloseOtherIcon": "右键菜单关闭其他按钮图标",
21552155
"AttributeContextMenuCloseAllIcon": "右键菜单关闭全部按钮图标",
21562156
"AttributeContextMenuFullScreenIcon": "右键菜单全屏按钮图标",
2157-
"AttributeOnBeforeShowContextMenu": "右键菜单弹出前回调方法"
2157+
"AttributeOnBeforeShowContextMenu": "右键菜单弹出前回调方法",
2158+
"ShowTabInHeaderDesc": "<code>Layout</code> 组件中开启多标签功能后,可以通过设置 <code>ShowTabInHeader=\"true\"</code> 将 <code>Tab</code> 标签头渲染到 <code>Layout</code> Header 模板中,效果可以通过 <a href=\"template\" target=\"_blank\">项目模板</a> 新建工程查看"
21582159
},
21592160
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21602161
"Info": "点击下方按钮,本 <code>TabItem</code> 标题更改为当前分钟与秒",

0 commit comments

Comments
 (0)