Blazor event argument coverage (#12929)
parent
db612904d7
commit
4ce108f514
|
@ -299,13 +299,24 @@ Event handlers can also be asynchronous and return a <xref:System.Threading.Task
|
|||
|
||||
For some events, event-specific event argument types are permitted. If access to one of these event types isn't necessary, it isn't required in the method call.
|
||||
|
||||
The list of supported event arguments is:
|
||||
Supported [UIEventArgs](https://github.com/aspnet/AspNetCore/blob/master/src/Components/Components/src/UIEventArgs.cs) are shown in the following table.
|
||||
|
||||
* UIEventArgs
|
||||
* UIChangeEventArgs
|
||||
* UIKeyboardEventArgs
|
||||
* UIMouseEventArgs
|
||||
| Event | Class |
|
||||
| ----- | ----- |
|
||||
| Clipboard | `UIClipboardEventArgs` |
|
||||
| Drag | `UIDragEventArgs` – `DataTransfer` is used to hold the dragged data during a drag and drop operation and may hold one or more `UIDataTransferItem`. `UIDataTransferItem` represents one drag data item. |
|
||||
| Error | `UIErrorEventArgs` |
|
||||
| Focus | `UIFocusEventArgs` – Doesn't include support for `relatedTarget`. |
|
||||
| `<input>` change | `UIChangeEventArgs` |
|
||||
| Keyboard | `UIKeyboardEventArgs` |
|
||||
| Mouse | `UIMouseEventArgs` |
|
||||
| Mouse pointer | `UIPointerEventArgs` |
|
||||
| Mouse wheel | `UIWheelEventArgs` |
|
||||
| Progress | `UIProgressEventArgs` |
|
||||
| Touch | `UITouchEventArgs` – `UITouchPoint` represents a single contact point on a touch-sensitive device. |
|
||||
|
||||
For information on the properties and event handling behavior of the events in the preceding table, see [UIEventArgs](https://github.com/aspnet/AspNetCore/blob/master/src/Components/Components/src/UIEventArgs.cs) in the reference source.
|
||||
|
||||
Lambda expressions can also be used:
|
||||
|
||||
```cshtml
|
||||
|
|
Loading…
Reference in New Issue