File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/BootstrapBlazor/Components/Layout Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 133133 BeforeContextMenuTemplate = " @BeforeTabContextMenuTemplate" ContextMenuTemplate = " @TabContextMenuTemplate"
134134 ContextMenuRefreshIcon = " @TabContextMenuRefreshIcon" ContextMenuCloseIcon = " @TabContextMenuCloseIcon"
135135 ContextMenuCloseOtherIcon = " @TabContextMenuCloseOtherIcon" ContextMenuCloseAllIcon = " @TabContextMenuCloseAllIcon"
136+ OnBeforeShowContextMenu = " @OnBeforeShowContextMenu"
136137 ShowRefreshToolbarButton = " ShowRefreshToolbarButton" ShowFullscreenToolbarButton = " ShowFullscreenToolbarButton"
137138 RefreshToolbarButtonIcon = " @RefreshToolbarButtonIcon" FullscreenToolbarButtonIcon = " @FullscreenToolbarButtonIcon"
138139 RefreshToolbarTooltipText = " @RefreshToolbarTooltipText" FullscreenToolbarTooltipText = " @FullscreenToolbarTooltipText"
Original file line number Diff line number Diff line change @@ -339,6 +339,12 @@ public partial class Layout : IHandlerException
339339 [ Parameter ]
340340 public string ? TabContextMenuCloseAllIcon { get ; set ; }
341341
342+ /// <summary>
343+ /// Gets or sets before popup context menu callback. Default is null.
344+ /// </summary>
345+ [ Parameter ]
346+ public Func < TabItem , Task < bool > > ? OnBeforeShowContextMenu { get ; set ; }
347+
342348 [ Inject ]
343349 [ NotNull ]
344350 private NavigationManager ? Navigation { get ; set ; }
You can’t perform that action at this time.
0 commit comments