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
@@ -55,8 +55,24 @@ include CDN-script, provided by the [platform](//awes.io)
55
55
|**theme**|`String`|`'default'`| Styling modal appearance, simply adds additional class to the wrapper, e.g. `is-${theme}`|
56
56
|**param**|`String`|`'modal'`| GET-parameter, that recieves a value of **name** param when window is opened. All the modals? by default, share the same GET-param. This means opening next modal closes previouse. |
57
57
|**stay**|`Boolean`|`false`| Should the content stay in markup, when window is closed. *Could be configured globally*|
58
+
|**bg-сlick-сlose**|`Boolean`|`true`| Should the modal be closed by clicking on background. *Could be configured globally*|
58
59
|**lang**|`Object`|[lang](#mw-lang)| Overwrite default lang strings in current modal. *Could be configured globally*|
59
60
61
+
The properties, marked as **globally configured**, could be provided in `AWES_CONFIG` in camelCase. For example:
62
+
63
+
```javascript
64
+
constAWES_CONFIG= {
65
+
66
+
// some other config...
67
+
68
+
modalWindow: {
69
+
stay:true,
70
+
bgClickClose:false,
71
+
// ... other options
72
+
}
73
+
}
74
+
```
75
+
60
76
61
77
### Modal window ID
62
78
@@ -187,4 +203,60 @@ Transition styling colud be done with proper [Vue transition component classes](
187
203
* modal-transition-awesome-enter-to
188
204
* modal-transition-awesome-leave
189
205
* modal-transition-awesome-leave-active
190
-
* modal-transition-awesome-leave-to
206
+
* modal-transition-awesome-leave-to
207
+
208
+
209
+
## AJAX modal example
210
+
211
+
To show dynamically loading content, place a `<content-wrapper/>` component inside a modal.
212
+
213
+
> Note, that by default, content will be loaded **each time** modal is opened.
214
+
> But if you use modal with `stay` prop turned on - content will be loaded **once**, after the page load
0 commit comments