HTMLGuyLLC / jAlert

jQuery alert/modal/lightbox plugin
https://htmlguyllc.github.io/jAlert/
MIT License
76 stars 35 forks source link

How to add title and alert like design to confirmation box? #43

Closed hardiktailored closed 7 years ago

hardiktailored commented 7 years ago

I have included scripts and added confirmation as per document like below:

function delete_confirm(form)
{
    confirm(function(e,btn){ //event + button clicked
        e.preventDefault();
        form.submit();
    }, function(e,btn){
        e.preventDefault();
        return false;
    });
} 

But I don't see any example explaining how I can I add other parameters like title, theme, size, etc. in above confirm method, like below alert:

$.jAlert({
            'title': 'Set It',
            'content': 'Set',
            'theme': 'green',
            'size': 'md',
            'showAnimation': 'fadeInUp',
            'hideAnimation': 'fadeOutDown'
        });
HTMLGuyLLC commented 7 years ago

$.jAlert({
            'type':'confirm',
            'size': 'md',
            'showAnimation': 'fadeInUp',
            'hideAnimation': 'fadeOutDown'
        });