You are reading docs for v1.3.1, click here for the latest version.
확인창 (ConfirmDialog)

This is an overview of the most common usage of 확인창 (ConfirmDialog). For more information about the available properties, methods, or events, head over to the complete API documentation for 확인창 (ConfirmDialog).

확인창(ConfirmDialog) 는 부울값(예/아니오, Yes/No) 를 입력하는 다이얼로그입니다.


const dialogs = require('ui/dialogs')

module.exports = {
  mounted() {
    dialogs.confirm('Are you ready?')
    .then(result => {
      console.log(result)
    })
  }
}

ConfirmDialog는 전역적으로 사용할 수 있기 때문에, 다이얼로그 모듈에서 임포트하는 대신, 다음과 같이 간단히 호출할 수 있습니다.

confirm('Are you ready?')
.then(result => {
  console.log(result)
})

여러분의 코드 어디에서라도 말이죠.

Contributors