1.4.8 • Published 6 years ago

vue-packery-plugin v1.4.8

Weekly downloads
80
License
MIT
Repository
github
Last release
6 years ago

Vue.js Packery Plugin

A wrapper for the beloved packery for vue.js

Installing

npm install --save vue-packery-plugin

then

import VuePackeryPlugin from 'vue-packery-plugin'

Vue.use(VuePackeryPlugin)

Usage

<div v-packery='{itemSelector: ".packery-item", percentPosition: true}'>

    <div v-packery-item class='packery-item'></div>
    <div v-packery-item class='packery-item'></div>
    <div v-packery-item class='packery-item'></div>

</div>

Receive events

All the packery events are emitted you can make use of it the following Way:

<div v-packery='{itemSelector: ".packery-item", percentPosition: true}' @layoutComplete='doStuff()'>

Manually trigger layout

import {packeryEvents} from 'vue-packery-plugin'

...

packeryEvents.$emit('layout', MY_PACKERY_EL)

Draggabilly

If you need draggabilly support follow instructions here Vue.js Packery Draggabilly Plugin.

Examples

Examples can be run with Vue CLI 3.

1.4.8

6 years ago

1.4.7

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.3.1

6 years ago

1.3.0

7 years ago

1.2.11

7 years ago

1.2.10

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago