JSPM

imagegalleryvue

1.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q18324F
    • License ISC

    Image gallery with thumbnails for vue.js

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagegalleryvue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      First step is;

      import ImageGallery from "imagegalleryvue/ImageGallery.vue";

      and use this component;

       components: {ImageGallery}

      and use component with your array data;

      < ImageGallery v-if="images!=null" :images="images" />

      props detail;

      
      props: {
        //your images
        images: {
          type: Array,
          default: []
        },
        //if this is true i will add "data:image/jpeg;base64," at the beginning of each of your images.
        isBase64: {
          type: Boolean,
          default: true
        },
        //your thumbnail images css settings
        thumbnail: {
          type: Object,
          default: {
            height: '64px',
            width: '64px',
            objectFit: 'contain',
            background: 'black'
          }
        },
        //your footer images css settings
        footer: {
          type: Object,
          default: {
            height: '64px',
            width: '64px',
            objectFit: 'contain',
            background: 'black'
          }
        },
        texts: {
          type: Object,
          default: {
            play: "Play",
            pause: "Pause",
            close: "Close",
            onceEvery: "Once every ",
            previous: "Previous",
            next: "Next"
          }
        },
        //speed range
        speed: {
          type: Object,
          default: {
            minSpeed: 10,
            maxSpeed: 500
          }
        }
      }