-
Notifications
You must be signed in to change notification settings - Fork 1
DotNetInstanceCallbackArgs
Mika Berglund edited this page Jan 24, 2021
·
3 revisions
The class that is used as arguments when the DotNetInstanceCallbackHandler
class calls a JavaScript function.
DotNetInstanceCallbackArgs : System.IDisposable
Name | Type | Description |
---|---|---|
SuccessCallback | DotNetInstanceMethod | The callback that your JavaScript code must call to send data back to your Blazor code. |
FailureCallback | DotNetInstanceMethod | The callback that your JavaScript code must call to notify your Blazor code of a failure. |
Data | Dictionary<string, object> | Any additional data that you want to send to the JavaScript function. |
This arguments object will be serialized to the following JSON before sending it to your JavaScript code.
{
"successCallback": { ... },
"failureCallback": { ... },
"data": { ... }
}