File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
src/BootstrapBlazor/Components/Layout Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 119119 < Tab ClickTabToNavigation = " ClickTabToNavigation" AdditionalAssemblies = " @AdditionalAssemblies"
120120 ShowExtendButtons = " ShowTabExtendButtons" ShowClose = " ShowTabItemClose" AllowDrag = " AllowDragTab"
121121 DefaultUrl = " @TabDefaultUrl" ExcludeUrls = " @ExcludeUrls" IsOnlyRenderActiveTab = " IsOnlyRenderActiveTab"
122+ TabStyle = " TabStyle" ShowToolbar = " @ShowToolbar" ToolbarTemplate = " @ToolbarTemplate"
123+ ShowRefreshToolbarButton = " ShowRefreshToolbarButton" ShowFullscreenToolbarButton = " ShowFullscreenToolbarButton"
124+ RefreshToolbarButtonIcon = " @RefreshToolbarButtonIcon" FullscreenToolbarButtonIcon = " @FullscreenToolbarButtonIcon"
125+ RefreshToolbarTooltipText = " @RefreshToolbarTooltipText" FullscreenToolbarTooltipText = " @FullscreenToolbarTooltipText"
126+ OnToolbarRefreshCallback = " OnToolbarRefreshCallback"
122127 Body = " @Main" NotAuthorized = " NotAuthorized!" NotFound = " NotFound!" NotFoundTabText = " @NotFoundTabText" >
123128 < / Tab >
124129 }
Original file line number Diff line number Diff line change @@ -17,6 +17,66 @@ public partial class Layout : IHandlerException
1717{
1818 private bool IsSmallScreen { get ; set ; }
1919
20+ /// <summary>
21+ /// Gets or sets the tab style. Default is <see cref="TabStyle.Default"/>.
22+ /// </summary>
23+ [ Parameter ]
24+ public TabStyle TabStyle { get ; set ; }
25+
26+ /// <summary>
27+ /// Gets or sets whether show the toolbar. Default is false.
28+ /// </summary>
29+ [ Parameter ]
30+ public bool ShowToolbar { get ; set ; }
31+
32+ /// <summary>
33+ /// Gets or sets the template of the toolbar button. Default is null.
34+ /// </summary>
35+ [ Parameter ]
36+ public RenderFragment ? ToolbarTemplate { get ; set ; }
37+
38+ /// <summary>
39+ /// Gets or sets whether show the full screen button. Default is true.
40+ /// </summary>
41+ [ Parameter ]
42+ public bool ShowFullscreenToolbarButton { get ; set ; } = true ;
43+
44+ /// <summary>
45+ /// Gets or sets the full screen toolbar button icon string. Default is null.
46+ /// </summary>
47+ [ Parameter ]
48+ public string ? FullscreenToolbarButtonIcon { get ; set ; }
49+
50+ /// <summary>
51+ /// Gets or sets the full screen toolbar button tooltip string. Default is null.
52+ /// </summary>
53+ [ Parameter ]
54+ public string ? FullscreenToolbarTooltipText { get ; set ; }
55+
56+ /// <summary>
57+ /// Gets or sets whether show the full screen button. Default is true.
58+ /// </summary>
59+ [ Parameter ]
60+ public bool ShowRefreshToolbarButton { get ; set ; } = true ;
61+
62+ /// <summary>
63+ /// Gets or sets the refresh toolbar button icon string. Default is null.
64+ /// </summary>
65+ [ Parameter ]
66+ public string ? RefreshToolbarButtonIcon { get ; set ; }
67+
68+ /// <summary>
69+ /// Gets or sets the refresh toolbar button tooltip string. Default is null.
70+ /// </summary>
71+ [ Parameter ]
72+ public string ? RefreshToolbarTooltipText { get ; set ; }
73+
74+ /// <summary>
75+ /// Gets or sets the refresh toolbar button click event callback. Default is null.
76+ /// </summary>
77+ [ Parameter ]
78+ public Func < Task > ? OnToolbarRefreshCallback { get ; set ; }
79+
2080 /// <summary>
2181 /// 获得/设置 侧边栏状态
2282 /// </summary>
You can’t perform that action at this time.
0 commit comments