0.3.8 • Published 8 years ago

vue-popper v0.3.8

Weekly downloads
22
License
MIT
Repository
github
Last release
8 years ago

vue-popper

A popper mixin for Vue.js using popper.js.

Demo

https://element-component.github.io/vue-popper/

Usage

import Popper from 'vue-popper'

export default {
  mixins: [Popper],

  props: {
    content: String,
    visibleArrow: {
      default: true
    }
  },

  template: `
    <span>
      <div class="popper" v-el:popper v-show="visible">
        <span v-text="content"></span>
      </div>
      <div class="rel" v-el:reference>
        <slot></slot>
      </div>
    </span>
  `
}

API

OptionDescriptionValueDefault
referenceThe reference element used to position the popper.HTMLElementthis.$els.reference
popperThe HTML element used as popper, or a configuration used to generate the popper.HTMLElementthis.$els.popper
placementPlacement of the popper.top, top-start, top-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end'bottom'
offsetAmount of pixels the popper will be shifted (can be negative).Number0
visibleVisibility of the popup element.Booleanfalse
visible-arrowVisibility arrow, no style.Booleanfalse
autoCreateauto init popperBooleantrue
createdcreate popper after callbackFunction(vm)

Methods

  • createPopper

Development

make dev

Production

make dist

License

MIT

0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago