Skip to content

Commit 2f6dfa1

Browse files
committed
doc: 增加刷新按钮回调方法文档说明
1 parent 4c1a13f commit 2f6dfa1

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,14 @@ private AttributeItem[] GetAttributes() =>
442442
DefaultValue = " — "
443443
},
444444
new()
445+
{
446+
Name = nameof(Tab.OnToolbarRefreshCallback),
447+
Description = Localizer["AttributeOnToolbarRefreshCallback"].Value,
448+
Type = "Func<Task>",
449+
ValueList = " — ",
450+
DefaultValue = " — "
451+
},
452+
new()
445453
{
446454
Name = nameof(Tab.FullscreenToolbarButtonIcon),
447455
Description = Localizer["AttributeFullscreenToolbarButtonIcon"].Value,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,8 @@
21312131
"AttributeFullscreenToolbarTooltipText": "Toolbar full screen button tooltip text",
21322132
"AttributeRefreshToolbarButtonIcon": "Toolbar refresh button icon",
21332133
"AttributeFullscreenToolbarButtonIcon": "Toolbar full screen button icon",
2134-
"TabsToolbarDesc": "After clicking the button, the counter value increases, and clicking the <b>Refresh</b> button on the toolbar will reset the counter."
2134+
"TabsToolbarDesc": "After clicking the button, the counter value increases, and clicking the <b>Refresh</b> button on the toolbar will reset the counter.",
2135+
"AttributeOnToolbarRefreshCallback": "Click the toolbar refresh button callback method"
21352136
},
21362137
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21372138
"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
@@ -2131,7 +2131,8 @@
21312131
"AttributeFullscreenToolbarTooltipText": "工具栏全屏按钮提示框文字",
21322132
"AttributeRefreshToolbarButtonIcon": "工具栏刷新按钮图标",
21332133
"AttributeFullscreenToolbarButtonIcon": "工具栏全屏按钮图标",
2134-
"TabsToolbarDesc": "点击按钮计数器数值增加后,点击工具栏的 <b>刷新</b> 按钮计数器清零"
2134+
"TabsToolbarDesc": "点击按钮计数器数值增加后,点击工具栏的 <b>刷新</b> 按钮计数器清零",
2135+
"AttributeOnToolbarRefreshCallback": "点击工具栏刷新按钮回调方法"
21352136
},
21362137
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21372138
"Info": "点击下方按钮,本 <code>TabItem</code> 标题更改为当前分钟与秒",

0 commit comments

Comments
 (0)