ant-design-blazor/components/drawer/config/DrawerClosingEventArgs.cs
TimChen 19f51c87fa fix(module: drawer): close event bug (#599)
* fix: drawer close event bug

* refactor: translate some comments

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-09-16 19:42:48 +08:00

30 lines
579 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore.Components.Web;
namespace AntDesign
{
public class DrawerClosingEventArgs
{
private bool _rejected;
public DrawerClosingEventArgs() { }
public DrawerClosingEventArgs(bool reject)
{
_rejected = reject;
}
internal bool Rejected { get => _rejected; }
/// <summary>
/// Reject to close
/// </summary>
public void Reject()
{
_rejected = true;
}
}
}