m-e-conroy / angular-dialog-service

A complete AngularJS service with controllers and templates for generating application modals and dialogs for use with Angular-UI-Bootstrap and Twitter Bootstrap
MIT License
618 stars 227 forks source link

Can I set backdrop per dialog #87

Closed hugsbrugs closed 9 years ago

hugsbrugs commented 9 years ago

Hi there and thanks for your super plugin !

I'm wondering if I can easily set a backdrop per dialog since I don't want same behavior for all dialogs.

I've tried :

dialogs.useBackdrop('static');

But it gives me an error since this method is from dialog.service and not dialog itself

I've found a workaround by adding a parameter to function create but I'd like to know what is the best way to do this without touching source code (have to minify myself, no compatibilties when updates etc )

Thanks

Hugo

m-e-conroy commented 9 years ago

Sorry for the late reply.

You can set the backdrop usage by using the opts parameter and setting opts.bd to the desired value when calling any of the dialog services.