Bootstrap-Confirmation icon indicating copy to clipboard operation
Bootstrap-Confirmation copied to clipboard

data atributs overwrite global settings

Open jankrnavek opened this issue 8 years ago • 1 comments

It would be great if i have possibility to set global common setting (per project) with method .confirmation({ "many options"}) and do any small extra settings on a particular button over data attributes. (data attributs will overwrite global setting)

jankrnavek avatar Aug 10 '16 16:08 jankrnavek

@jankrnavek as for the global settings, you can simply extend $.fn.confirmation.defaults like so: $.extend($.fn.confirmation.defaults, {...})

But I agree on the request, that programmatic settings should have priority over data attributes, assuming they differ from the default values.

jnikles avatar Jan 16 '17 11:01 jnikles