JsInvokableAction¶
Namespace: ThinkGeo.UI.Blazor
Represents a container which includes an JsInvokableAction.Invoke(string) method that can be invoked from JS code.
public class JsInvokableAction
Inheritance object → JsInvokableAction
Constructors¶
JsInvokableAction(Delegate)¶
Initializes a new instance of JsInvokableAction.
public JsInvokableAction(Delegate delegate)
Parameters¶
delegate Delegate
A delegate for JS callback.
Methods¶
Invoke(string)¶
Invokes the wrapped delegate in response to a JavaScript callback, mapping the JSON payload to strong types first.
public object Invoke(string args)
Parameters¶
args string
The JSON-formatted arguments supplied by JavaScript.
Returns¶
object
The value produced by the wrapped delegate.