jameskleeh / angular-confirm

Confirmation modal dialog for AngularJS
Apache License 2.0
150 stars 75 forks source link

Add support for custom bootstrap button classes #68

Closed stguitar closed 8 years ago

stguitar commented 8 years ago

Rather than limit to just OK being 'primary' and Cancel being 'default', let the using template pass in the intended class to the directive.

Load/Use defaults as primary/default to maintain existing behavior, but those can be passed in via new directive attributes.

stguitar commented 8 years ago

Just to document here, as discussed in #69 changes have been made such that instead of supporting custom classes for the OK/Cancel buttons, a configured set of named templates can be used as needed to allow further customization of the confirm dialog.

jameskleeh commented 8 years ago

Thanks for the contribution @stguitar !