Our state of the art Gantt chart


Post by ggalipeau »

I have what I hope is a fairly simple question. I have a simple Popup with a button on it that makes an async call.

new Popup({          
html : `<div style="width: 100%"><h1>Lorem Ipsum</h1></div>`, items : [ { type : 'button', text: 'Close', onClick : () => this.hide()}, { type: 'button', text: 'OK',
onClick : async() => { //Async Call Here
} } ] });

I basically want a loading message while the async call to my server is happening. Then, when it finishes, I want to write the returned message inside the html of the popup. So, 2 questions:

  1. Is there any loading or spinner control in your core I can show as an overlay on top of the popup?
  2. Is there anyway for me to inject html into the popup after it finishes so I can show the success or error message from my server?

Thanks in advance


Post by mats »


Post Reply