confirming.js
A lightweight library for creating confirm boxes in JavaScript
Basic usage
var myConfirmObject = confirm({
className: 'classNameOfTheConfirmBoxContainer',
statement: 'Statement label here',
disagree: 'Disagree button label here',
agree: 'Agree button label here'
});
myConfirmObject.open(function agreed(){
console.log('agreed');
},function(){
console.log('disagreed');
});
Confirm box structure (for styling)
div.givenClassName>div>span+div>button*2
Install
Bower
bower install --save tomato-confirming