-
Notifications
You must be signed in to change notification settings - Fork 8
/
EventHandlers.cs
96 lines (77 loc) · 3.74 KB
/
EventHandlers.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Components;
namespace NimbleBlazor;
public class TabsChangeEventArgs : EventArgs
{
public string? ActiveId { get; set; }
}
public class CheckboxChangeEventArgs : EventArgs
{
public bool Checked { get; set; }
}
public class MenuButtonToggleEventArgs : EventArgs
{
public bool NewState { get; set; }
public bool OldState { get; set; }
}
public class BannerToggleEventArgs : EventArgs
{
public bool OldState { get; set; }
public bool NewState { get; set; }
}
public class TableActionMenuToggleEventArgs : EventArgs
{
public bool NewState { get; set; }
public bool OldState { get; set; }
public IEnumerable<string>? RecordIds { get; set; }
public string? ColumnId { get; set; }
}
public class TableRowSelectionEventArgs : EventArgs
{
public IEnumerable<string>? SelectedRecordIds { get; set; }
}
public class TableColumnConfigurationEventArgs : EventArgs
{
public IEnumerable<TableColumnConfiguration>? Columns { get; set; }
}
public class TableColumnMenuButtonToggleEventArgs : MenuButtonToggleEventArgs
{
public string RecordId { get; set; } = string.Empty;
}
public class TableColumnConfiguration
{
public string? ColumnId { get; set; }
public int? SortIndex { get; set; }
[JsonConverter(typeof(TableColumnSortDirectionConverter))]
public TableColumnSortDirection SortDirection { get; set; }
public int? GroupIndex { get; set; }
public bool Hidden { get; set; }
public double FractionalWidth { get; set; }
public double? PixelWidth { get; set; }
}
public class TableRowExpandToggleEventArgs : EventArgs
{
public string RecordId { get; set; } = string.Empty;
public bool NewState { get; set; }
public bool OldState { get; set; }
}
public class WaferMapHoverDieChangedEventArgs : EventArgs
{
public WaferMapDie? CurrentDie { get; set; }
}
[EventHandler("onnimbletabsactiveidchange", typeof(TabsChangeEventArgs), enableStopPropagation: true, enablePreventDefault: true)]
[EventHandler("onnimblecheckedchange", typeof(CheckboxChangeEventArgs), enableStopPropagation: true, enablePreventDefault: true)]
[EventHandler("onnimblemenubuttontoggle", typeof(MenuButtonToggleEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimblemenubuttonbeforetoggle", typeof(MenuButtonToggleEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimblebannertoggle", typeof(BannerToggleEventArgs), enableStopPropagation: true, enablePreventDefault: true)]
[EventHandler("onnimbleactionmenutoggle", typeof(TableActionMenuToggleEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimbleactionmenubeforetoggle", typeof(TableActionMenuToggleEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimbletablerowselectionchange", typeof(TableRowSelectionEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimbletablecolumnconfigurationchange", typeof(TableColumnConfigurationEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimbletablecolumnmenubuttontoggle", typeof(TableColumnMenuButtonToggleEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimbletablecolumnmenubuttonbeforetoggle", typeof(TableColumnMenuButtonToggleEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimbletablerowexpandtoggle", typeof(TableRowExpandToggleEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
[EventHandler("onnimblewafermapdiehoverchange", typeof(WaferMapHoverDieChangedEventArgs), enableStopPropagation: true, enablePreventDefault: false)]
public static class EventHandlers
{
}