ant-design-blazor/components/modal/confirmDialog/IConfirmService.cs
wss-awachowicz 1b48d862e2
refactor(module: modal): update ConfirmService to use interface (#3083)
* ConfirmService To Interface

* backwards compatibility
2023-02-10 13:30:41 +08:00

24 lines
716 B
C#

using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using OneOf;
namespace AntDesign;
public interface IConfirmService
{
Task<ConfirmResult> Show(
OneOf<string, RenderFragment> content,
OneOf<string, RenderFragment> title,
ConfirmButtons confirmButtons,
ConfirmIcon confirmIcon,
ConfirmButtonOptions options,
ConfirmAutoFocusButton? autoFocusButton = ConfirmAutoFocusButton.Ok);
Task<ConfirmResult> Show
(OneOf<string, RenderFragment> content,
OneOf<string, RenderFragment> title,
ConfirmButtons confirmButtons = ConfirmButtons.OKCancel,
ConfirmIcon confirmIcon = ConfirmIcon.Info);
}