Skip to content

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 ObjectJsInvokableAction

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.