mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 09:50:22 +00:00
Update README.md
This commit is contained in:
14
README.md
14
README.md
@@ -113,8 +113,18 @@ this.$modal.show('dialog', {
|
||||
title: 'Alert!',
|
||||
text: 'You are too awesome',
|
||||
buttons: [
|
||||
{ title: 'Deal with it', handler: () => { alert('Woot!') } },
|
||||
{ title: 'Close' }
|
||||
{
|
||||
title: 'Deal with it',
|
||||
handler: () => { alert('Woot!') }
|
||||
},
|
||||
{
|
||||
titile: '', // Button title
|
||||
default: true, // Will be triggered by default if 'Enter' pressed.
|
||||
handler: () => {} // Button click handler
|
||||
},
|
||||
{
|
||||
title: 'Close'
|
||||
}
|
||||
]
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user