Files
qbtmud/Lantean.QBTMud/Components/UI/TableDataContextMenuEventArgs.cs
2024-10-22 09:57:50 +01:00

43 lines
1.1 KiB
C#

using Microsoft.AspNetCore.Components.Web;
using MudBlazor;
namespace Lantean.QBTMud.Components.UI
{
public class TableDataContextMenuEventArgs<T> : EventArgs
{
//
// Summary:
// The coordinates of the click.
public MouseEventArgs MouseEventArgs { get; }
//
// Summary:
// The row which was clicked.
public MudTd Data { get; }
//
// Summary:
// The data related to the row which was clicked.
public T? Item { get; }
//
// Summary:
// Creates a new instance.
//
// Parameters:
// mouseEventArgs:
// The coordinates of the click.
//
// row:
// The row which was context-clicked.
//
// item:
// The data related to the row which was context-clicked.
public TableDataContextMenuEventArgs(MouseEventArgs mouseEventArgs, MudTd data, T? item)
{
MouseEventArgs = mouseEventArgs;
Data = data;
Item = item;
}
}
}