HI,
Try this
Regards, ah
//Enable module support.
cfg.ESM
//import a custom utils module.
//import { utils } from "./my-module.js"
export class Main extends App {
onStart() {
this.layMain = ui.addLayout( "main", "linear", "fillxy,vcenter" )
this.txt = ui.addText( this.layMain, "Press the Android Back button")
app.EnableBackKey( false )
this.dlg = ui.addDialog("Close?", "Exit app?", "Yes,No")
this.dlg.setOnAction(function(text,index) {
if (text == "Yes") app.Exit( )
}) // setOnAction
}
onConfig() {
app.ShowPopup( "rotated!" )
} // onConfig
onBack() {
this.dlg.show()
} // onBack
} // class
//