File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/BootstrapBlazor/Components/Tab Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ else if (ShowContextMenu)
2323 @if (ShowContextMenuFullScreen )
2424 {
2525 <ContextMenuDivider ></ContextMenuDivider >
26- <ContextMenuItem Icon =" @FullscreenToolbarButtonIcon " Text =" @Localizer[" ContextFullScreen " ]" OnClick =" OnFullScreen" ></ContextMenuItem >
26+ <ContextMenuItem Icon =" @ContextMenuFullScreenIcon " Text =" @Localizer[" ContextFullScreen " ]" OnClick =" OnFullScreen" ></ContextMenuItem >
2727 }
2828 @if (ContextMenuTemplate != null )
2929 {
Original file line number Diff line number Diff line change @@ -407,6 +407,12 @@ public partial class Tab : IHandlerException
407407 [ Parameter ]
408408 public string ? ContextMenuCloseAllIcon { get ; set ; }
409409
410+ /// <summary>
411+ /// Gets or sets the icon of tab item context menu full screen button. Default is null.
412+ /// </summary>
413+ [ Parameter ]
414+ public string ? ContextMenuFullScreenIcon { get ; set ; }
415+
410416 /// <summary>
411417 /// Gets or sets before popup context menu callback. Default is null.
412418 /// </summary>
@@ -500,6 +506,7 @@ protected override void OnParametersSet()
500506 ContextMenuCloseIcon ??= IconTheme . GetIconByKey ( ComponentIcons . TabContextMenuCloseIcon ) ;
501507 ContextMenuCloseOtherIcon ??= IconTheme . GetIconByKey ( ComponentIcons . TabContextMenuCloseOtherIcon ) ;
502508 ContextMenuCloseAllIcon ??= IconTheme . GetIconByKey ( ComponentIcons . TabContextMenuCloseAllIcon ) ;
509+ ContextMenuFullScreenIcon ??= IconTheme . GetIconByKey ( ComponentIcons . TabContextMenuFullScreenIcon ) ;
503510
504511 if ( AdditionalAssemblies is null )
505512 {
You can’t perform that action at this time.
0 commit comments