@optix/vue-lightbox
v0.0.1
Published
Lightbox image gallery plugin
Downloads
5
Readme
Vue Lightbox
A simple lightbox image gallery plugin.
Installation
npm install @optix/vue-lightbox --save
yarn add @optix/vue-lightbox
import Vue from 'vue';
import VueLightbox from '@optix/vue-lightbox';
Vue.use(VueLightbox);
@import "@optix/vue-lightbox/src/sass/_index";
Usage
// TODO
Accessing the lightbox object:
// Globally
Vue.lightbox.open();
// On an instance
this.$lightbox.open();
Methods
- open() - id
- onOpen() - callback
- close()
- onClose() - callback
- destroy() - callback
<lightbox :images="images"></lightbox>
License
The MIT License (MIT). Please see License File for more information.