mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 21:17:36 +08:00
6aff9d370c
* fix(module: Modal&Drawer): render reducing and demo update * docs(module: modal): add FAQ section * docs: add English comments * fix: wrong format in Modal_service_for_confirm.razor Co-authored-by: James Yeung <shunjiey@hotmail.com>
42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public interface IModalTemplate
|
|
{
|
|
/// <summary>
|
|
/// Call back when OK button is triggered
|
|
/// 点击确定按钮时调用,可以重写它来放入自己的逻辑
|
|
/// </summary>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
[Obsolete("Please replace it with OnFeedbackOkAsync")]
|
|
Task OkAsync(ModalClosingEventArgs args);
|
|
|
|
/// <summary>
|
|
/// Call back when Cancel button is triggered
|
|
/// 点击取消按钮时调用,可以重写它来放入自己的逻辑
|
|
/// </summary>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
[Obsolete("Please replace it with OnFeedbackCancelAsync")]
|
|
Task CancelAsync(ModalClosingEventArgs args);
|
|
|
|
/// <summary>
|
|
/// Call back when OK button is triggered
|
|
/// 击确定按钮时调用,可以重写它来放入自己的逻辑
|
|
/// </summary>
|
|
/// <param name="args"></param>
|
|
/// <returns></returns>
|
|
Task OnFeedbackOkAsync(ModalClosingEventArgs args);
|
|
|
|
/// <summary>
|
|
/// Call back when Cancel button is triggered
|
|
/// 点击取消按钮时调用,可以重写它来放入自己的逻辑
|
|
/// </summary>
|
|
Task OnFeedbackCancelAsync(ModalClosingEventArgs args);
|
|
}
|
|
}
|