I would like to call javascript function in vaadin. Its a AbstractJavaScriptExtension.
this.callFunction("removeNode"); does not fire the javascript function. Is this a bug or am I doing something wrong?
@Override
public void remove() {
super.remove();
fireRemoveNode();
this.callFunction("removeNode");
}
JavaScript code:
window.vaadin_components_graph_Node = function() {
var self = this;
var state = this.getState();
...
this.removeNode = function() {
console.log("CALL FUNCTION", "remove node")
$(node).remove();
}
};