Diálogos para web. Alerta, confirmações, aguardando, menu, etc.
npm install dialogsjssh
bower install geidsonbc/dialogs --save
`
or npm
`sh
npm install dialogsjs
`
or yarn
`sh
yarn add dialogsjs
`
$3
Include:
`html
`
Methods
1. dialog.waiting('Message');
2. dialog.confirm('Title', 'Message', function(){ // confirm }, function(){ // cancel });
3. dialog.prompt('Title', 'Message', 'Label', 'Selector', function(){ // done }, function(){ // cancel });
4. dialog.modal('Title', 'Message', function(){ ... });
5. dialog.info('Title', 'Message', function(){ ... });
6. dialog.help('Title', 'Message', { class: ..., func: ... });
7. dialog.menu('Title', [{ value: ..., label: ... }, ... ], function(e){ ... } );
8. dialog.close('Type');
$3
1. Info
`js
dialog.info('Titulo', 'Corpo', function() {
alert('callback');
});
`
2. Confirm
`js
dialog.confirm({
title: 'Titulo',
message: 'Corpo',
confirm: {
label: 'SIM',
event: function() {
alert('callback');
}
},
cancel: {
label: 'NÃO',
event: function() {
alert('callback');
}
}
});
``