Package Exports
- vue-use-popperjs
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 (vue-use-popperjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vue-use-popperjs
The usePopperjs hook provides an API identical to the ones of createPopper constructor.
Documentation
https://iendeavor.github.io/vue-use-popperjs/
API
Parameters
Reference
Popper
Option
| Option | Default | Type | Description |
|---|---|---|---|
| placement | - | - | See popper.js options |
| modifiers | - | - | See popper.js options |
| strategy | - | - | See popper.js options |
| onFirstUpdate | - | - | See popper.js options |
| trigger | 'hover' |
'hover' | 'focus' | 'click-to-toggle' | 'click-to-open' | 'manual' |
|
| delay-on-mouseover | 200 |
number |
Delay in ms before showing popper during the mouseover event, only applicable for trigger='hover' |
| delay-on-mouseout | 200 | number | Delay in ms before hiding popper during the mouseout event, only applicable for trigger='hover' |
| force-show | false | boolean | Force show the popper even manually (see the visible of returned value) close it |
Return
| Key | Type | Description |
|---|---|---|
| instance | Object |
Popperjs instance |
| visible | Ref<boolean> |
Allow to manually set this value to show/hide popper |