I have a JFX panel that run typeScript. I want to execute typeScript function that trigger by java function.
there is a: engine.executeScript("scriptName");
but its working just on javaScript function and doesnt know the TypeScript function.
I try this option: I create JS page that try to call to TS function like this code:
in jfxPanelManager.java
engine.executeScript("realoadMe()");
in bridge.js
var app=requierd('./home/app.ts');
function reloadMe(){
app.reloadData();
}
java throw exeption that the app in undefined.
How can I refresh the data?