0.1.2 • Published 5 years ago

@pgp/vue-media-gallery v0.1.2

Weekly downloads
59
License
MIT
Repository
github
Last release
5 years ago

@pgp/vue-media-gallery

NPM

Installation

NPM

Install the package

$ npm i @pgp/vue-media-gallery --save

Register the component.

  • ES5
var Gallery = require('@pgp/vue-media-gallery');
Vue.component('posts', Gallery.Posts)
  • ES6
import Gallery from '@pgp/vue-media-gallery'
Vue.component('posts', Gallery.Posts)

<!-- or import the Posts component -->
import {Posts} from '@pgp/vue-media-gallery'
Vue.component('posts', Posts)
  • Browser
new Vue({
    el        : '#app',                 // Vue app element
    components: {
        posts: pgpVueMediaGallery.Posts // Global component loaded from unpkg.com CDN
    }
});

CDN

Include the source file.

<!-- use the latest release -->
<script src="https://unpkg.com/@pgp/vue-media-gallery@latest"></script>
<!-- or use the specify version -->
<script src="https://unpkg.com/@pgp/vue-media-gallery@0.0.1"></script>
``

## Usage

### In Vue Template
```html
<posts
    campaign-slug="nj-sugarfreed">
</posts>

Note: In vue template, camelCase and kebab-case are both supported. For example, you can either use prop page-count or pageCount. They are leading to the same result.

Register the component.

Vue.component('posts', PgpVueMediaGallery.Posts)

Props

Name                                       TypeDescriptionDefault
request-urlStringOrigin URL the request to the PGP Download Center host environment.https://downloadcenter.publicgoodprojects.org
:per-pageNumberNumber of items to return per page.10
campaign-slugStringCampaign slug name to select the campaign-specific assets.''
client-idStringClient id to select the client-specific assets.''
:enable-filtersBooleanDisplay filtering options.false
facebook-share-urlStringFacebook URL to scrape metas.''
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago