tplus-api
Version:
tplus api invoke
16 lines (11 loc) • 416 B
text/typescript
export default class UIConfirm{
static showConfirm:(message:string,postEvent:()=>any)=>any;
static registerImpl(showConfirm:(message:string,postEvent:()=>any)=>any){
if(typeof showConfirm === 'function'){
UIConfirm.showConfirm = showConfirm;
}
}
static show(message:string,postEvent){
UIConfirm.showConfirm && UIConfirm.showConfirm(message,postEvent);
}
}