Modal
View codeUse
HTML
<rg-modal>Modal body</rg-modal>
JavaScript
var tags = riot.mount('rg-modal', {
modal: {
isvisible: true,
dismissable: true,
heading: 'Modal heading',
buttons: [{
text: 'Ok',
style: 'success',
action: function () { ... }
}, {
text: 'Cancel',
style: 'warning',
action: function () { ... }
}]
}
})
tags[0].on('close', function () { ... })