Bootbox - Disable BUtton
<p>I can't seem to find much information on Bootbox, I was hoping that I could disable the search button if invalid. Two elements on the modal, one needs to be provided. I would have thought that would be a parm called disabled etc which you could pass logic through to, but the code below doesn't work. Am I missing something, seems like a basic requirement to have.</p>

<pre><code>search(){          
    bootbox.dialog({
        title: "Search Options",
        message: jQuery('#searchCriteria').html(),
        buttons: {
            cancel: {                    
                label: 'Cancel', 
                className: 'btn btn-default'
            },
            confirm: {
                disabled: this.canSearch(),
                label: 'Search', 
                className: 'btn-primary btn btn-info', 
                callback: function() {
                    this.searchOptions("test","1");
                    }
                } 
            },
        }
    });
}
</code></pre>