## Classes
The dataObject
is an object containing all the informations used by Popper.js
this object get passed to modifiers and to the onCreate
and onUpdate
callbacks.
The referenceObject
is an object that provides an interface compatible with Popper.js
and lets you use it as replacement of a real DOM node.
You can use this method to position a popper relatively to a set of coordinates
in case you don't have a DOM node to use as reference.
new Popper(referenceObject, popperNode);
NB: This feature isn't supported in Internet Explorer 10
object
Modifiers are plugins used to alter the behavior of your poppers.
Popper.js uses a set of 9 modifiers to provide all the basic functionalities
needed by the library.
Usually you don't want to override the order
, fn
and onLoad
props.
All the other properties are configurations that could be tweaked.
dataObject
Modifier function, each modifier can have a function of this type assigned
to its fn
property.
These functions will be called on each update, this means that you must
make sure they are performant enough to avoid performance bottlenecks.
function
function
Object
* [.placement](#Popper.Defaults.placement)
* [.eventsEnabled](#Popper.Defaults.eventsEnabled)
* [.removeOnDestroy](#Popper.Defaults.removeOnDestroy)
* [.modifiers](#Popper.Defaults.modifiers)
* [.onCreate()](#Popper.Defaults.onCreate)
* [.onUpdate()](#Popper.Defaults.onUpdate)
* [.placements](#Popper.placements) : enum
* [.update()](#Popper.update)
* [.destroy()](#Popper.destroy)
* [.enableEventListeners()](#Popper.enableEventListeners)
* [.disableEventListeners()](#Popper.disableEventListeners)
* [.scheduleUpdate()](#Popper.scheduleUpdate)
### new Popper(reference, popper, options)
Create a new Popper.js instance
**Returns**: Object
- instance - The generated Popper.js instance
| Param | Type | Description |
| --- | --- | --- |
| reference | HTMLElement
\| [referenceObject
](#referenceObject) | The reference element used to position the popper |
| popper | HTMLElement
| The HTML element used as popper. |
| options | Object
| Your custom options to override the ones defined in [Defaults](#defaults) |
### Popper.Defaults : Object
Default options provided to Popper.js constructor.Popper
](#Popper)
* [.Defaults](#Popper.Defaults) : Object
* [.placement](#Popper.Defaults.placement)
* [.eventsEnabled](#Popper.Defaults.eventsEnabled)
* [.removeOnDestroy](#Popper.Defaults.removeOnDestroy)
* [.modifiers](#Popper.Defaults.modifiers)
* [.onCreate()](#Popper.Defaults.onCreate)
* [.onUpdate()](#Popper.Defaults.onUpdate)
#### Defaults.placement
Popper's placement
**Kind**: static property of [Defaults
](#Popper.Defaults)
**Properties**
| Name | Type | Default |
| --- | --- | --- |
| placement | [placements
](#Popper.placements) | 'bottom'
|
#### Defaults.eventsEnabled
Whether events (resize, scroll) are initially enabled
**Kind**: static property of [Defaults
](#Popper.Defaults)
**Properties**
| Name | Type | Default |
| --- | --- | --- |
| eventsEnabled | Boolean
| true
|
#### Defaults.removeOnDestroy
Set to true if you want to automatically remove the popper when
you call the `destroy` method.
**Kind**: static property of [Defaults
](#Popper.Defaults)
**Properties**
| Name | Type | Default |
| --- | --- | --- |
| removeOnDestroy | Boolean
| false
|
#### Defaults.modifiers
List of modifiers used to modify the offsets before they are applied to the popper.
They provide most of the functionalities of Popper.js
**Kind**: static property of [Defaults
](#Popper.Defaults)
**Properties**
| Type |
| --- |
| [modifiers
](#modifiers) |
#### Defaults.onCreate()
Callback called when the popper is created.Defaults
](#Popper.Defaults)
**Properties**
| Type |
| --- |
| [onCreate
](#onCreate) |
#### Defaults.onUpdate()
Callback called when the popper is updated, this callback is not called
on the initialization/creation of the popper, but only on subsequent
updates.Defaults
](#Popper.Defaults)
**Properties**
| Type |
| --- |
| [onUpdate
](#onUpdate) |
### Popper.placements : enum
List of accepted placements to use as values of the `placement` option.Popper
](#Popper)
**Read only**: true
### Popper.update()
Updates the position of the popper, computing the new offsets and applying
the new style.Popper
](#Popper)
### Popper.destroy()
Destroy the popper
**Kind**: static method of [Popper
](#Popper)
### Popper.enableEventListeners()
It will add resize/scroll events and start recalculating
position of the popper element when they are triggered.
**Kind**: static method of [Popper
](#Popper)
### Popper.disableEventListeners()
It will remove resize/scroll events and won't recalculate popper position
when they are triggered. It also won't trigger onUpdate callback anymore,
unless you call `update` method manually.
**Kind**: static method of [Popper
](#Popper)
### Popper.scheduleUpdate()
Schedule an update, it will run on the next UI update available
**Kind**: static method of [Popper
](#Popper)
## dataObject
The `dataObject` is an object containing all the informations used by Popper.js
this object get passed to modifiers and to the `onCreate` and `onUpdate` callbacks.
**Kind**: global variable
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| data.instance | Object
| The Popper.js instance |
| data.placement | String
| Placement applied to popper |
| data.originalPlacement | String
| Placement originally defined on init |
| data.flipped | Boolean
| True if popper has been flipped by flip modifier |
| data.hide | Boolean
| True if the reference element is out of boundaries, useful to know when to hide the popper. |
| data.arrowElement | HTMLElement
| Node used as arrow by arrow modifier |
| data.styles | Object
| Any CSS property defined here will be applied to the popper, it expects the JavaScript nomenclature (eg. `marginBottom`) |
| data.arrowStyles | Object
| Any CSS property defined here will be applied to the popper arrow, it expects the JavaScript nomenclature (eg. `marginBottom`) |
| data.boundaries | Object
| Offsets of the popper boundaries |
| data.offsets | Object
| The measurements of popper, reference and arrow elements. |
| data.offsets.popper | Object
| `top`, `left`, `width`, `height` values |
| data.offsets.reference | Object
| `top`, `left`, `width`, `height` values |
| data.offsets.arrow | Object
| `top` and `left` offsets, only one of them will be different from 0 |
## referenceObject
The `referenceObject` is an object that provides an interface compatible with Popper.js
and lets you use it as replacement of a real DOM node.function
| A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. |
| data.clientWidth | number
| An ES6 getter that will return the width of the virtual reference element. |
| data.clientHeight | number
| An ES6 getter that will return the height of the virtual reference element. |
## modifiers : object
Modifiers are plugins used to alter the behavior of your poppers.object
* [~shift](#modifiers..shift)
* [.order](#modifiers..shift.order)
* [.enabled](#modifiers..shift.enabled)
* [.fn](#modifiers..shift.fn)
* [~offset](#modifiers..offset)
* [.order](#modifiers..offset.order)
* [.enabled](#modifiers..offset.enabled)
* [.fn](#modifiers..offset.fn)
* [.offset](#modifiers..offset.offset)
* [~preventOverflow](#modifiers..preventOverflow)
* [.order](#modifiers..preventOverflow.order)
* [.enabled](#modifiers..preventOverflow.enabled)
* [.fn](#modifiers..preventOverflow.fn)
* [.priority](#modifiers..preventOverflow.priority)
* [.padding](#modifiers..preventOverflow.padding)
* [.boundariesElement](#modifiers..preventOverflow.boundariesElement)
* [~keepTogether](#modifiers..keepTogether)
* [.order](#modifiers..keepTogether.order)
* [.enabled](#modifiers..keepTogether.enabled)
* [.fn](#modifiers..keepTogether.fn)
* [~arrow](#modifiers..arrow)
* [.order](#modifiers..arrow.order)
* [.enabled](#modifiers..arrow.enabled)
* [.fn](#modifiers..arrow.fn)
* [.element](#modifiers..arrow.element)
* [~flip](#modifiers..flip)
* [.order](#modifiers..flip.order)
* [.enabled](#modifiers..flip.enabled)
* [.fn](#modifiers..flip.fn)
* [.behavior](#modifiers..flip.behavior)
* [.padding](#modifiers..flip.padding)
* [.boundariesElement](#modifiers..flip.boundariesElement)
* [~inner](#modifiers..inner)
* [.order](#modifiers..inner.order)
* [.enabled](#modifiers..inner.enabled)
* [.fn](#modifiers..inner.fn)
* [~hide](#modifiers..hide)
* [.order](#modifiers..hide.order)
* [.enabled](#modifiers..hide.enabled)
* [.fn](#modifiers..hide.fn)
* [~computeStyle](#modifiers..computeStyle)
* [.order](#modifiers..computeStyle.order)
* [.enabled](#modifiers..computeStyle.enabled)
* [.fn](#modifiers..computeStyle.fn)
* [.gpuAcceleration](#modifiers..computeStyle.gpuAcceleration)
* [.x](#modifiers..computeStyle.x)
* [.y](#modifiers..computeStyle.y)
* [~applyStyle](#modifiers..applyStyle)
* [.order](#modifiers..applyStyle.order)
* [.enabled](#modifiers..applyStyle.enabled)
* [.fn](#modifiers..applyStyle.fn)
* [.onLoad](#modifiers..applyStyle.onLoad)
* ~~[.gpuAcceleration](#modifiers..applyStyle.gpuAcceleration)~~
### modifiers~shift
Modifier used to shift the popper on the start or end of its reference
element.modifiers
](#modifiers)
* [~shift](#modifiers..shift)
* [.order](#modifiers..shift.order)
* [.enabled](#modifiers..shift.enabled)
* [.fn](#modifiers..shift.fn)
#### shift.order
**Kind**: static property of [shift
](#modifiers..shift)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 100
| Index used to define the order of execution |
#### shift.enabled
**Kind**: static property of [shift
](#modifiers..shift)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### shift.fn
**Kind**: static property of [shift
](#modifiers..shift)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
### modifiers~offset
The `offset` modifier can shift your popper on both its axis.
It accepts the following units:
- `px` or unitless, interpreted as pixels
- `%` or `%r`, percentage relative to the length of the reference element
- `%p`, percentage relative to the length of the popper element
- `vw`, CSS viewport width unit
- `vh`, CSS viewport height unit
For length is intended the main axis relative to the placement of the popper.modifiers
](#modifiers)
* [~offset](#modifiers..offset)
* [.order](#modifiers..offset.order)
* [.enabled](#modifiers..offset.enabled)
* [.fn](#modifiers..offset.fn)
* [.offset](#modifiers..offset.offset)
#### offset.order
**Kind**: static property of [offset
](#modifiers..offset)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 200
| Index used to define the order of execution |
#### offset.enabled
**Kind**: static property of [offset
](#modifiers..offset)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### offset.fn
**Kind**: static property of [offset
](#modifiers..offset)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
#### offset.offset
**Kind**: static property of [offset
](#modifiers..offset)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| offset | Number
\| String
| 0
| The offset value as described in the modifier description |
### modifiers~preventOverflow
Modifier used to prevent the popper from being positioned outside the boundary.
An scenario exists where the reference itself is not within the boundaries.modifiers
](#modifiers)
* [~preventOverflow](#modifiers..preventOverflow)
* [.order](#modifiers..preventOverflow.order)
* [.enabled](#modifiers..preventOverflow.enabled)
* [.fn](#modifiers..preventOverflow.fn)
* [.priority](#modifiers..preventOverflow.priority)
* [.padding](#modifiers..preventOverflow.padding)
* [.boundariesElement](#modifiers..preventOverflow.boundariesElement)
#### preventOverflow.order
**Kind**: static property of [preventOverflow
](#modifiers..preventOverflow)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 300
| Index used to define the order of execution |
#### preventOverflow.enabled
**Kind**: static property of [preventOverflow
](#modifiers..preventOverflow)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### preventOverflow.fn
**Kind**: static property of [preventOverflow
](#modifiers..preventOverflow)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
#### preventOverflow.priority
**Kind**: static property of [preventOverflow
](#modifiers..preventOverflow)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| priority | Array
| ['left','right','top','bottom']
| Popper will try to prevent overflow following these priorities by default, then, it could overflow on the left and on top of the `boundariesElement` |
#### preventOverflow.padding
**Kind**: static property of [preventOverflow
](#modifiers..preventOverflow)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| padding | number
| 5
| Amount of pixel used to define a minimum distance between the boundaries and the popper this makes sure the popper has always a little padding between the edges of its container |
#### preventOverflow.boundariesElement
**Kind**: static property of [preventOverflow
](#modifiers..preventOverflow)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| boundariesElement | String
\| HTMLElement
| 'scrollParent'
| Boundaries used by the modifier, can be `scrollParent`, `window`, `viewport` or any DOM element. |
### modifiers~keepTogether
Modifier used to make sure the reference and its popper stay near eachothers
without leaving any gap between the two. Expecially useful when the arrow is
enabled and you want to assure it to point to its reference element.
It cares only about the first axis, you can still have poppers with margin
between the popper and its reference element.
**Kind**: inner property of [modifiers
](#modifiers)
* [~keepTogether](#modifiers..keepTogether)
* [.order](#modifiers..keepTogether.order)
* [.enabled](#modifiers..keepTogether.enabled)
* [.fn](#modifiers..keepTogether.fn)
#### keepTogether.order
**Kind**: static property of [keepTogether
](#modifiers..keepTogether)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 400
| Index used to define the order of execution |
#### keepTogether.enabled
**Kind**: static property of [keepTogether
](#modifiers..keepTogether)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### keepTogether.fn
**Kind**: static property of [keepTogether
](#modifiers..keepTogether)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
### modifiers~arrow
This modifier is used to move the `arrowElement` of the popper to make
sure it is positioned between the reference element and its popper element.
It will read the outer size of the `arrowElement` node to detect how many
pixels of conjuction are needed.
It has no effect if no `arrowElement` is provided.
**Kind**: inner property of [modifiers
](#modifiers)
* [~arrow](#modifiers..arrow)
* [.order](#modifiers..arrow.order)
* [.enabled](#modifiers..arrow.enabled)
* [.fn](#modifiers..arrow.fn)
* [.element](#modifiers..arrow.element)
#### arrow.order
**Kind**: static property of [arrow
](#modifiers..arrow)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 500
| Index used to define the order of execution |
#### arrow.enabled
**Kind**: static property of [arrow
](#modifiers..arrow)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### arrow.fn
**Kind**: static property of [arrow
](#modifiers..arrow)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
#### arrow.element
**Kind**: static property of [arrow
](#modifiers..arrow)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| element | String
\| HTMLElement
| '[x-arrow]'
| Selector or node used as arrow |
### modifiers~flip
Modifier used to flip the popper's placement when it starts to overlap its
reference element.
Requires the `preventOverflow` modifier before it in order to work.
**NOTE:** this modifier will interrupt the current update cycle and will
restart it if it detects the need to flip the placement.
**Kind**: inner property of [modifiers
](#modifiers)
* [~flip](#modifiers..flip)
* [.order](#modifiers..flip.order)
* [.enabled](#modifiers..flip.enabled)
* [.fn](#modifiers..flip.fn)
* [.behavior](#modifiers..flip.behavior)
* [.padding](#modifiers..flip.padding)
* [.boundariesElement](#modifiers..flip.boundariesElement)
#### flip.order
**Kind**: static property of [flip
](#modifiers..flip)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 600
| Index used to define the order of execution |
#### flip.enabled
**Kind**: static property of [flip
](#modifiers..flip)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### flip.fn
**Kind**: static property of [flip
](#modifiers..flip)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
#### flip.behavior
**Kind**: static property of [flip
](#modifiers..flip)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| behavior | String
\| Array
| 'flip'
| The behavior used to change the popper's placement. It can be one of `flip`, `clockwise`, `counterclockwise` or an array with a list of valid placements (with optional variations). |
#### flip.padding
**Kind**: static property of [flip
](#modifiers..flip)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| padding | number
| 5
| The popper will flip if it hits the edges of the `boundariesElement` |
#### flip.boundariesElement
**Kind**: static property of [flip
](#modifiers..flip)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| boundariesElement | String
\| HTMLElement
| 'viewport'
| The element which will define the boundaries of the popper position, the popper will never be placed outside of the defined boundaries (except if keepTogether is enabled) |
### modifiers~inner
Modifier used to make the popper flow toward the inner of the reference element.
By default, when this modifier is disabled, the popper will be placed outside
the reference element.
**Kind**: inner property of [modifiers
](#modifiers)
* [~inner](#modifiers..inner)
* [.order](#modifiers..inner.order)
* [.enabled](#modifiers..inner.enabled)
* [.fn](#modifiers..inner.fn)
#### inner.order
**Kind**: static property of [inner
](#modifiers..inner)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 700
| Index used to define the order of execution |
#### inner.enabled
**Kind**: static property of [inner
](#modifiers..inner)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| false
| Whether the modifier is enabled or not |
#### inner.fn
**Kind**: static property of [inner
](#modifiers..inner)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
### modifiers~hide
Modifier used to hide the popper when its reference element is outside of the
popper boundaries. It will set a `x-out-of-boundaries` attribute which can
be used to hide with a CSS selector the popper when its reference is
out of boundaries.
Requires the `preventOverflow` modifier before it in order to work.
**Kind**: inner property of [modifiers
](#modifiers)
* [~hide](#modifiers..hide)
* [.order](#modifiers..hide.order)
* [.enabled](#modifiers..hide.enabled)
* [.fn](#modifiers..hide.fn)
#### hide.order
**Kind**: static property of [hide
](#modifiers..hide)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 800
| Index used to define the order of execution |
#### hide.enabled
**Kind**: static property of [hide
](#modifiers..hide)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### hide.fn
**Kind**: static property of [hide
](#modifiers..hide)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
### modifiers~computeStyle
Computes the style that will be applied to the popper element to gets
properly positioned.
Note that this modifier will not touch the DOM, it just prepares the styles
so that `applyStyle` modifier can apply it. This separation is useful
in case you need to replace `applyStyle` with a custom implementation.
This modifier has `850` as `order` value to maintain backward compatibility
with previous versions of Popper.js. Expect the modifiers ordering method
to change in future major versions of the library.
**Kind**: inner property of [modifiers
](#modifiers)
* [~computeStyle](#modifiers..computeStyle)
* [.order](#modifiers..computeStyle.order)
* [.enabled](#modifiers..computeStyle.enabled)
* [.fn](#modifiers..computeStyle.fn)
* [.gpuAcceleration](#modifiers..computeStyle.gpuAcceleration)
* [.x](#modifiers..computeStyle.x)
* [.y](#modifiers..computeStyle.y)
#### computeStyle.order
**Kind**: static property of [computeStyle
](#modifiers..computeStyle)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 850
| Index used to define the order of execution |
#### computeStyle.enabled
**Kind**: static property of [computeStyle
](#modifiers..computeStyle)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### computeStyle.fn
**Kind**: static property of [computeStyle
](#modifiers..computeStyle)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
#### computeStyle.gpuAcceleration
**Kind**: static property of [computeStyle
](#modifiers..computeStyle)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| gpuAcceleration | Boolean
| true
| If true, it uses the CSS 3d transformation to position the popper. Otherwise, it will use the `top` and `left` properties. |
#### computeStyle.x
**Kind**: static property of [computeStyle
](#modifiers..computeStyle)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| x | string
| "'bottom'"
| Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. Change this if your popper should grow in a direction different from `bottom` |
#### computeStyle.y
**Kind**: static property of [computeStyle
](#modifiers..computeStyle)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| x | string
| "'left'"
| Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. Change this if your popper should grow in a direction different from `right` |
### modifiers~applyStyle
Applies the computed styles to the popper element.
All the DOM manipulations are limited to this modifier. This is useful in case
you want to integrate Popper.js inside a framework or view library and you
want to delegate all the DOM manipulations to it.
Note that if you disable this modifier, you must make sure the popper element
has its position set to `absolute` before Popper.js can do its work!
Just disable this modifier and define you own to achieve the desired effect.
**Kind**: inner property of [modifiers
](#modifiers)
* [~applyStyle](#modifiers..applyStyle)
* [.order](#modifiers..applyStyle.order)
* [.enabled](#modifiers..applyStyle.enabled)
* [.fn](#modifiers..applyStyle.fn)
* [.onLoad](#modifiers..applyStyle.onLoad)
* ~~[.gpuAcceleration](#modifiers..applyStyle.gpuAcceleration)~~
#### applyStyle.order
**Kind**: static property of [applyStyle
](#modifiers..applyStyle)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| order | number
| 900
| Index used to define the order of execution |
#### applyStyle.enabled
**Kind**: static property of [applyStyle
](#modifiers..applyStyle)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| enabled | Boolean
| true
| Whether the modifier is enabled or not |
#### applyStyle.fn
**Kind**: static property of [applyStyle
](#modifiers..applyStyle)
**Properties**
| Type |
| --- |
| [ModifierFn
](#ModifierFn) |
#### applyStyle.onLoad
**Kind**: static property of [applyStyle
](#modifiers..applyStyle)
**Properties**
| Type |
| --- |
| function
|
#### ~~applyStyle.gpuAcceleration~~
***Deprecated***
**Kind**: static property of [applyStyle
](#modifiers..applyStyle)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| gpuAcceleration | Boolean
| true
| If true, it uses the CSS 3d transformation to position the popper. Otherwise, it will use the `top` and `left` properties. |
## ModifierFn(data, options) ⇒ [dataObject
](#dataObject)
Modifier function, each modifier can have a function of this type assigned
to its `fn` property.dataObject
](#dataObject) - The data object, properly modified
| Param | Type | Description |
| --- | --- | --- |
| data | [dataObject
](#dataObject) | The data object generated by `update` method |
| options | Object
| Modifiers configuration and options |
## onUpdate : function
**Kind**: global typedef
| Param | Type |
| --- | --- |
| data | [dataObject
](#dataObject) |
## onCreate : function
**Kind**: global typedef
| Param | Type |
| --- | --- |
| data | [dataObject
](#dataObject) |