We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51cb815 commit 63b84c7Copy full SHA for 63b84c7
src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs
@@ -30,4 +30,16 @@ public partial class Toolbar
30
.AddStyle("flex-wrap", "wrap", IsWrap)
31
.AddStyleFromAttributes(AdditionalAttributes)
32
.Build();
33
+
34
+ private readonly List<ComponentBase> _components = [];
35
36
+ /// <summary>
37
+ /// 添加按钮到工具栏方法
38
+ /// </summary>
39
+ public void Add(ComponentBase component) => _components.Add(component);
40
41
42
+ /// 移除按钮到工具栏方法
43
44
+ public void Remove(ComponentBase component) => _components.Remove(component);
45
}
0 commit comments