public interface JavaScriptFunction extends Serializable
call(JsonArray)
method is invoked.JavaScript.addFunction(String, JavaScriptFunction)
,
AbstractJavaScriptComponent.addFunction(String, JavaScriptFunction)
,
AbstractJavaScriptExtension.addFunction(String, JavaScriptFunction)
Modifier and Type | Method and Description |
---|---|
void |
call(JsonArray arguments)
Invoked whenever the corresponding JavaScript function is called in the
browser.
|
void call(JsonArray arguments)
Because of the asynchronous nature of the communication between client and server, no return value can be sent back to the browser.
arguments
- an array with JSON representations of the arguments with which
the JavaScript function was called.Copyright © 2019 Vaadin Ltd. All rights reserved.