Thursday, 27 June 2019

UIkit3: to confirm user input in UIkit.modal.prompt using UIkit.modal.confirm

I want to use UIkit.modal.confirm to confirm users' input in UIkit.modal.prompt, if they confirm then proceed, otherwise then back to UIkit.modal.confirm.

UIkit.modal.prompt('Input','').then(function(input){
  UIkit.modal.confirm(input).then(function(){
    .... //proceed
  },function(){
    ..... // How do I got back to the previous prompt?
  })
})



from UIkit3: to confirm user input in UIkit.modal.prompt using UIkit.modal.confirm

No comments:

Post a Comment