Hello there.
I would like to block screen from ticket sidebar with a spinner on full screen.
It's possible?
var client = ZAFClient.init();
client.invoke('hide');
client.on('app.registered', (data) => {
client.on("ticket.submit.done", function () {
// on spinner
client.request({
url: 'http://localhost:3000/delay',
type: 'post'
}).then((res) => {
console.log("ticket.submit.done res: ", res);
// off spinner
});
});
}
One way you could go about this is by using a modal within the app. Here's an example of how that could look:
With this example, you'll need to create a separate
modal.htmlfile where you'll have this spinner located. Here's a link to the documentation that goes in to more detail.I hope this helps. Feel free to reach out with any questions.
Tipene