Godofbrowser / vuejs-dialog

A lightweight, promise based alert, prompt and confirm dialog
351 stars 109 forks source link

hi, Excuse me #9

Closed awesomezz closed 7 years ago

awesomezz commented 7 years ago

How to set only one button ? thank you

Godofbrowser commented 7 years ago

Hello @awesomezz to display only one button you'll need to use the vm.$dialog.alert() method instead of vm.$dialog.confirm(). it's also possible to place the button on the left hand side of the dialog by setting the reverse option vm.$dialog.alert('This is an alert', {reverse: true})

awesomezz commented 7 years ago

thank you very much。

发自我的 iPhone

在 2017年11月9日,15:50,Ajeh Emeke notifications@github.com 写道:

Hello @awesomezz to display only one button you'll need to use the vm.$dialog.alert() method instead of vm.$dialog.confirm(). it's also possible to place the button on the left hand side of the dialog by setting the reverse option vm.$dialog.alert('This is an alert', {reverse: true})

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

awesomezz commented 7 years ago

Thank you very much

发自我的 iPhone

在 2017年11月9日,15:50,Ajeh Emeke notifications@github.com 写道:

Hello @awesomezz to display only one button you'll need to use the vm.$dialog.alert() method instead of vm.$dialog.confirm(). it's also possible to place the button on the left hand side of the dialog by setting the reverse option vm.$dialog.alert('This is an alert', {reverse: true})

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Godofbrowser commented 7 years ago

You're welcome.