2.3.0 • Published 4 years ago

vue-popperjs v2.3.0

Weekly downloads
17,765
License
MIT
Repository
github
Last release
4 years ago

vue-popperjs

Greenkeeper badge VueJS popover component based on popper.js

Example

jsFiddle

Install

CDN

Recommended: https://unpkg.com/vue-popperjs, which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at https://unpkg.com/vue-popperjs/

NPM

npm install vue-popperjs --save

Yarn

yarn add vue-popperjs

Bower

bower install vue-popperjs --save

Development Setup

# install dependencies
npm install

# build dist files
npm run build

Usage

VueJS single file (ECMAScript 2015)

<template>
  <popper
    trigger="clickToOpen"
    :options="{
      placement: 'top',
      modifiers: { offset: { offset: '0,10px' } }
    }">
    <div class="popper">
      Popper Content
    </div>

    <button slot="reference">
      Reference Element
    </button>
  </popper>
</template>

<script>
  import Popper from 'vue-popperjs';
  import 'vue-popperjs/dist/vue-popper.css';

  export default {
    components: {
      'popper': Popper
    },
  }
</script>

Browser (ES5)

<link rel="stylesheet" href="vue-popper.css">
<script type="text/javascript" src="popper.js"></script>
<script type="text/javascript" src="vue.js"></script>
<script type="text/javascript" src="vue-popper.js"></script>

<div id="app">
  <popper
    trigger="clickToOpen"
    :options="{
      placement: 'top',
      modifiers: { offset: { offset: '0,10px' } }
    }">
    <div class="popper">
      Popper Content
    </div>

    <button slot="reference">
      Reference Element
    </button>
  </popper>
</div>

<script type="text/javascript">
  new Vue({
    el: '#app',
    components: {
      'popper': VuePopper
    }
  });
</script>

Props

PropsTypeDefaultDescription
disabledBooleanfalse
delay-on-mouse-overNumber10Delay in ms before showing popper during a mouse over
delay-on-mouse-outNumber10Delay in ms before hiding popper during a mouse out 
append-to-bodyBooleanfalse
visible-arrowBooleantrue
force-showBooleanfalse
triggerStringhoverOptional value: hover - hover to open popper contentclickToOpen - every click on the popper triggers open, only clicking outside of the popper closes itclickToToggle - click on the popper toggles it's visibilityclick (deprecated - same as clickToToggle)focus - opens popper on focus event, closes on blur.
contentStringnull
enter-active-classStringnull
leave-active-classStringnull
boundaries-selectorStringnull
transitionStringempty
optionsObject{ placement: 'bottom', gpuAcceleration: false }popper.js options
data-valueAnynulldata of popper
stop-propagationBooleanfalse
prevent-defaultBooleanfalse
root-classStringemptyClass name for root element

Events

NameParamsDescription
createdcontextObjectCreated popper component
showShow popover
hideHide popover
document-click

Other my Vue JS plugins

ProjectStatusDescription
vue-lsnpmVue plugin for work with local storage, session storage and memory storage from Vue context
vue-gallerynpmResponsive and customizable image and video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

FOSSA Status

MIT © Igor Ognichenko

elmec-atlantis-wiki@ali464sh/vue-multiple-image-clippingthunder-designstong-zui-uivue-xivtooltipsnuxt-uiwanghong-demo@infinitebrahmanuniverse/nolb-vue-ponaprocat-ui-kit@everything-registry/sub-chunk-3089@betao/ds@brettvd/customized-vue-colorpicker@chipsea/iot-chart@chipsea/iot-hilinkui@codernote/plan-hours@codernote/record-list@codernote/record-treedf_datetimepicker2davanmonetcox-vue-uichipsea-hilinkuicooltextareamv-executor-viewdat-library-uivue-select-panle@curupira/vue-components-ui@handday/components@hyjiacan/vue-kit@hichem-khial/vue-upload-multiple-crop-imagessankhya-web-componentscomparison-formscore-user-dashffxivita-tooltipssensitive-guardf2c-workbench@funda/ui@keenmate/vue-adminltejerri-uivdesign-ui@processmaker/modelervue-upload-image-multiplevue-upload-multiple-imagevue-upload-multiple-image-koreanview-avatarvue-components-lib-testkmh-common-componentsvue-select-panel@roma219/vue-components-lib-testvue-multiple-image-clippingvue-multiple-image-uploadfunky-ui-kitflux-ui-kit@mail2gowthamganesan/techno-vue-treeselect@marchef/vuejs-dropdownhhua-uihhua-ui-projectthunder-designtime-managetiptap-renderingtiptap-rendering-xiatianvue-boothelpvue-cube-ui-kithstuihdesign-uiwatchtower-benefits-shared-componentsmanniu-pickermanniu-uikitmanniu-uikit-datetime-pickermiaozhen-uedmiaozhen-uiyii-uikit-datetime-pickeryii-uikit-pickerymybyj-ui@slikmen/my-vd-componentsmn-componentsmulti-items-input@vergelijkdirect/comparison-forms@vergelijkdirect/my-vd-componentsmy-heightmy-weight@wizdom-intranet/spfx-ui-fabric-vue@xivapi/vue-xivtooltips
2.3.0

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.5.4

6 years ago

1.5.3

6 years ago

1.5.2

6 years ago

1.5.0

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.3

6 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.14

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago