Docs | Utilities | Javascript

Ask

description Popup bootstrap modal - can be used as alert
type javascript
source src/dvc/js/_brayworth_.ask.js

Example

    _brayworth_.ask({
        'text' : 'Is this OK ?',
        'headClass': 'text-white bg-danger',
        'buttons' : {
            'yes' : function() {
                $(this).modal('hide');
                console.log( 'ok', this);

            }

        }

    });