Update README.md

This commit is contained in:
Yev Vlasenko
2017-11-26 11:33:44 +00:00
committed by GitHub
parent aa388a692e
commit 9acd4ddcfc

View File

@@ -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'
}
]
})
```