diff --git a/src/BootstrapBlazor/Components/Dialog/DialogService.cs b/src/BootstrapBlazor/Components/Dialog/DialogService.cs index 453a8a4c038eddd0e7593d0a0bb5ed6c9c216cc2..2aa1dce472007f470ac78d4aaa2325123b097559 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogService.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogService.cs @@ -198,9 +198,10 @@ public class DialogService : BootstrapServiceBase /// /// /// + /// /// /// - public async Task ShowSaveDialog(string title, Func> saveCallback, Dictionary? parameters = null, Dialog? dialog = null) where TComponent : ComponentBase + public async Task ShowSaveDialog(string title, Func> saveCallback, Dictionary? parameters = null, Action? configureOption = null, Dialog? dialog = null) where TComponent : ComponentBase { var option = new DialogOption() { @@ -209,6 +210,7 @@ public class DialogService : BootstrapServiceBase ShowSaveButton = true, OnSaveAsync = saveCallback }; + configureOption?.Invoke(option); await Invoke(option, dialog); } }