diff --git a/examples/index.html b/examples/index.html
index 3f2e85e..19bea23 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -151,6 +151,10 @@
Buttons
label: 'Button 2',
// no title as it is optional
cssClass: 'btn-primary',
+ data: {
+ js: 'btn-confirm',
+ 'user-id': '3'
+ },
action: function(){
alert('Hi Orange!');
}
@@ -996,7 +1000,11 @@ Available options
id: 'btn-ok',
icon: 'glyphicon glyphicon-check',
label: 'OK',
- cssClass: 'btn-primary',
+ cssClass: 'btn-primary',
+ data: {
+ js: 'btn-confirm',
+ 'user-id': '3'
+ },
autospin: false,
action: function(dialogRef){
dialogRef.close();
@@ -1007,7 +1015,8 @@ Available options
id: optional, if id is set, you can use dialogInstance.getButton(id) to get the button later.
icon: optional, if set, the specified icon will be added to the button.
cssClass: optional, additional css class to be added to the button.
- autospin: optinal, if it's true, after clicked the button a spinning icon appears.
+ data: optional, object containing data attributes to be added to the button.
+ autospin: optional, if it's true, after clicked the button a spinning icon appears.
action: optional, if provided, the callback will be invoked after the button is clicked, and the dialog instance will be passed to the callback function.