Easy to use, highly customizable Vue.js modal library.
Minor bugfixes
orientationchange
eventinjectModalContainer
due to complexity & unclear use-casesdynamic
, now enabled by defaultStyles
property to add styles to the modal directly (string type is not well supported yet)Vue.use(VueJsModal, {
dynamic: true,
dynamicDefaults: {
foo: 'foo'
}
})
showDynamicRuntimeModal () {
this.$modal.show({
template: `
<div class="example-modal-content">
<p>{{ text }}</p>
<p>Default Property: {{ foo }}</p>
</div>
`,
props: ['text', 'foo']
}, {
text: 'This text is passed as a property'
})
},