user158173
Member since May 2024 • Last active May 2024Most recent activity
-
I have created a layout using Layout Library and want to prompt the user to confirm something, after the user selection, the screen goes blank and I can't seem to re-render the app.
function markHalftime(){ isHalftime = true; E.showPrompt("Are you sure?", { title:"Confirmation", buttons: {"No":false, "Yes":true} }).then(function(result) { if (result) { // Code to execute if the user clicks "Yes" console.log(result); } else { // Code to execute if the user clicks "No" or closes the dialog // This is optional, depending on your application's logic } g.clear(); Bangle.loadWidgets(); Bangle.drawWidgets(); layout.render(); }); }
Hi Gordon, thanks for the great answer. It resolved my issue. I was lazy rendering so I had to call layout.setUI(); layout.forgetLazyState(); layout.render(); and everything is working fine.
Thanks