Skip to content

Plugins

Jang Haemin edited this page Aug 27, 2019 · 4 revisions

eodiro Dialog

import Dialog from '~/plugins/eodiro-dialog'

alert(message)

new Dialog().alert('Hello World!')

confirm(message)

new Dialog().confirm('Do you confirm?')
  .then((response) => {
    // Do something with response
  })

// Using async/await
async function () {
  const response = await new Dialog().confirm('Do you confirm?')
  // Do something with response
}

vagabond(message)

new Dialog().vagabond('It disappears automatically after some time')
Clone this wiki locally