Utils to manipulate Gravity Forms internal usage of simplebar.
- Source
Methods
(inner) reInitChildren(parentEl) → {void}
Re-initializes any child instances of SimpleBar that are used within a given parent element. This may be needed when you have nested SimpleBar instances as you can run into issues with the nested instances having display issues.
Parameters:
Name | Type | Description |
---|---|---|
parentEl | HTMLElement | The parent element to search within for nested SimpleBar instances. |
- Since
- 1.2.10
- Source
Requires:
Returns:
- Type:
- void
Example
import { simpleBar } from "@gravityforms/utils";
function Example() {
const parent = getNodes( 'example' )[ 0 ];
simpleBar.reInitChildren( parent );
}