Search code examples
javascripthtmlgetuikit

Stacking UIkit.modal built-in dialogs


UIkit has built-in helper dialogs like confirm. Which is great but by default UIkit modals replace all other modals when shown. This behaviour can be changed with the stack option as long as I am defining the modal dialog - but this is not the case with the built-in ones. I have found a snippet on how to change their labels.

But how can I make the built-in helper modal to be stacked?


Solution

  • Seems to have found a solution: https://codepen.io/zorgoz/pen/pOZRyP

    UIkit.modal.confirm('My message!', {stack: true,...}) seem to work.