Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
node_modules/
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,28 @@ okCallback: function (dialog) {
}
```

## Prompt (collect data from user)

```javascript
this.$dialog
.prompt({
title: "Let's hear from you",
body: "What is the most important thing in life?",
promptHelp: 'Type in the box below and click "[+:okText]"'
})
.then(dialog => {
// Triggered when proceed button is clicked
// Show an alert with the user's input as the message
this.$dialog.alert(dialog.data || '[empty]')
})
.catch(() => {
// Triggered when dialog is dismissed by user

console.log('Prompt dismissed');
});
```


## Usage with ajax - Loader enabled

```javascript
Expand Down
2 changes: 1 addition & 1 deletion dist/vuejs-dialog-mixin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vuejs-dialog.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
ga('create', 'UA-105766420-1', 'auto');
ga('send', 'pageview');
</script>
<link href="css/app.main.css?6674f9de4f06722b31c8" rel="stylesheet"></head>
<link href="css/app.main.css?8bacb689809c4d1d370c" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script src="https://unpkg.com/vue@2.4.2/dist/vue.min.js"></script>
<script type="text/javascript" src="js/app.main.js?6674f9de4f06722b31c8"></script></body>
<script type="text/javascript" src="js/app.main.js?8bacb689809c4d1d370c"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/js/app.main.js

Large diffs are not rendered by default.

Loading