You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* sizeModal: Type: string, size of modal by default 'lg'
26
-
* positionButtons: Type: string, Allowed Values:[left, center, right(default)], position of buttons 'Ok' and 'Cancel'
27
-
* backdrop: Type: boolean|string, Allowed Values:[static(disables modal closing by click on the backdrop), false, true(default)], controls presence of a backdrop.
15
+
* acb-confirm-text: Type: string, text button action Ok by default 'Ok'
* acb-message: Type: string , main message, default: empty
22
+
* acb-title: Type: string , title modal, default: empty
23
+
* acb-on-confirm: Type: function, callback function
24
+
* acb-on-cancel: Type: function, callback function
25
+
* acb-size-modal: Type: string, size of modal by default 'lg'
26
+
* acb-position-buttons: Type: string, Allowed Values:[left, center, right(default)], position of buttons 'Ok' and 'Cancel'
27
+
* acb-backdrop: Type: boolean|string, Allowed Values:[static(disables modal closing by click on the backdrop), false, true(default)], controls presence of a backdrop.
* sizeModal: Type: string, size of modal by default 'lg'
82
-
* positionButtons: Type: string, Allowed Values:[left, center, right(default)], position of buttons 'Ok' and 'Cancel'
83
-
* backdrop: Type: boolean|string, Allowed Values:[static(disables modal closing by click on the backdrop), false, true(default)], controls presence of a backdrop.
84
-
* }
85
-
**/
86
-
87
-
88
-
vardirective={
89
-
restrict: 'EA',
90
-
templateUrl: '',
91
-
scope: {
92
-
confirmText: '@',
93
-
buttonConfirmClass: '@',
94
-
buttonConfirmIcon: '@',
95
-
cancelText: '@',
96
-
buttonCancelClass: '@',
97
-
buttonCancelIcon: '@',
98
-
message: '@',
99
-
title: '@',
100
-
onConfirm: '&',
101
-
onCancel: '&',
102
-
sizeModal: '@',
103
-
positionButtons: '@',
104
-
backdrop: '@'
105
-
},
106
-
link: function(scope,element,attr){
107
-
$(element).on('click',function(e){
108
-
e.stopPropagation();
109
-
scope.vm.openModal();
110
-
});
111
-
},
112
-
controller: directiveConfirmController,
113
-
controllerAs: 'vm',
114
-
bindToController: true
115
-
};
8
+
(function(){
9
+
'use strict';
10
+
11
+
/**
12
+
* @ngdoc module
13
+
* @name angular.confirm.bootstrap
14
+
* @description Module that asks for a confirmation and offers the possibility to accept or cancel the action
* acbSizeModal: Type: string, size of modal by default 'lg'
82
+
* acbPositionButtons: Type: string, Allowed Values:[left, center, right(default)], position of buttons 'Ok' and 'Cancel'
83
+
* acbBackdrop: Type: boolean|string, Allowed Values:[static(disables modal closing by click on the backdrop), false, true(default)], controls presence of a backdrop.
0 commit comments