Blazor event argument coverage (#12929)

pull/12984/head
Luke Latham 2019-06-22 19:05:12 -05:00 committed by GitHub
parent db612904d7
commit 4ce108f514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 5 deletions

View File

@ -299,12 +299,23 @@ 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` &ndash; `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` &ndash; Doesn't include support for `relatedTarget`. |
| `<input>` change | `UIChangeEventArgs` |
| Keyboard | `UIKeyboardEventArgs` |
| Mouse | `UIMouseEventArgs` |
| Mouse pointer | `UIPointerEventArgs` |
| Mouse wheel | `UIWheelEventArgs` |
| Progress | `UIProgressEventArgs` |
| Touch | `UITouchEventArgs` &ndash; `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: