Name Description Example
close Closes the currently open SweetAlert, as if you pressed the cancel button. swal.close()
getState Get the state of the current SweetAlert modal. swal.getState()
setActionValue Change the promised value of one of the modal's buttons. You can either pass in just a string (by default it changes the value of the confirm button), or an object. swal.setActionValue({ confirm: 'Text from input' })
stopLoading Removes all loading states on the modal's buttons. Use it in combination with the button option closeModal: false. swal.stopLoading()