0.2.0 • Published 6 years ago

mue-gallery v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

mue-gallery

A Vue.js images gallery.

Demo

Installation

# npm
npm install mue-gallery
# yarn
yarn add mue-gallery

Usage

import Vue from 'vue';
import MueGallery from 'mue-gallery';
 
Vue.use(MueGallery);

In your component:

<mue-gallery
  :images="images"
/>

Options

PropertyDefaultTypeDescription
v-modelfalseBooleanControls if gallery pop-up is open or not
images[]ArrayYour images list
indexundefinedNumberCurrent displayed image
embedfalseBooleanSet true to embed gallery into your page. If true, v-model is not needed
thumbstrueBooleanSet true to show thumbnails
thumbs-position'bottom'StringThumbnails position. Possible values: top, right, bottom, left
background'#333'StringThe background color. Any value, supported by CSS background-color
blurfalseBooleanSet true to add a half-transparent blurred version of current image to the background
navtrueBooleanSet true to show navigation arrows
captiontrueBooleanSet true to show current image title
countertrueBooleanSet true to show images counter
zoomfalseBooleanSet true to allow images zoom

images

Possible data formats:

[
  'image_1.jpg',
  ...
]
[
  {
    src: 'image_1.jpg',         // Full-size image path, required
    thumb: 'image_1_thumb.jpg', // Thumbnail path, optional
    title: 'Image 1',           // Image title, optional
  },
  ...
]

License

mue-gallery is MIT licensed.

0.2.0

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago