ngBootbox icon indicating copy to clipboard operation
ngBootbox copied to clipboard

confirm has no title,can u add one ?

Open kilometer2162 opened this issue 9 years ago • 1 comments

can you add a title to confirm ?it's too simple when no title for a confirm !

kilometer2162 avatar Jan 19 '16 13:01 kilometer2162

You can absolutely do that with $ngBootbox.customDialog(options)

For example,

var navigationOptions = {
                        message: 'Are you sure?',
                        title: 'Discard fees',
                        buttons: {
                            warning: {
                                label: "No",
                                className: "btn-default",
                                callback: function() {...}
                            },
                            success: {
                                label: "Yes",
                                className: "btn-danger",
                                callback: function() {...}
                            }
                        }
                    };

$ngBootbox.customDialog(navigationOptions);

deepal avatar Jan 28 '16 06:01 deepal