Skip to content

Commit 614a3fd

Browse files
committed
Update readme
1 parent 4103604 commit 614a3fd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,19 @@ this.$dialog.confirm(message, options)
9090
// This will be triggered when user clicks on cancel
9191
});
9292
```
93+
94+
```javascript
95+
// You can also set all your defaults at the oint of installation.
96+
// This will be your global configuration
97+
98+
Vue.use(VuejsDialog, {
99+
html: true,
100+
loader: true,
101+
okText: 'Proceed',
102+
cancelText: 'Cancel',
103+
animation: 'bounce',
104+
})
105+
106+
// Please note that local configurations will be considered before global configurations.
107+
// This gives you the flexibility of overriding the global config on individual call.
108+
```

0 commit comments

Comments
 (0)