diff --git a/src/BootstrapBlazor/Components/Layout/Layout.razor b/src/BootstrapBlazor/Components/Layout/Layout.razor index d712f36af28..4b5c4fe496a 100644 --- a/src/BootstrapBlazor/Components/Layout/Layout.razor +++ b/src/BootstrapBlazor/Components/Layout/Layout.razor @@ -116,16 +116,31 @@ @
@if (UseTabSet) { - - + @if (ShowTabContextMenu) + { + + @RenderTab + + @if (BeforeTabContextMenuTemplate != null) + { + @BeforeTabContextMenuTemplate(_tab) + } + + + + + + @if (TabContextMenuTemplate != null) + { + @TabContextMenuTemplate(_tab) + } + + + } + else + { + @RenderTab + } } else { @@ -133,6 +148,18 @@ }
; + RenderFragment RenderTab => + @ + ; + RenderFragment RenderFooter => @