vue-modal
Simple modal plugin with some nice hooks for toggling modal.
Install
The plugin will self install. However it also comes with some additional pre made modals.
~~~
import {modalSlide} from 'vue-modal';
Vue.component('modal-slide-show', modalSlide);
~~~
For now it's just a slide show.
Example
Plain Modal:
* The modals have events that cant be captured.
* They can also accept any arbitrary data.
~~~
login
register
// login html
~~~
Slideshow:
If no index is provided it will just go to
0 on start.
~~~
{{ video.name }}
~~~
Methods
There are also some other methods available. Probably they will not be required unless building a more generic style plugin.
*
$modal.show(name, data, overlap)
*
$modal.hide(name, reset)
*
$modal.data(name)
*
$modal.visible(name)
*
$modal.register(name)