This package contains the frontend assets of the composer bundle heimrichhannot/contao-utils-bundle.
yarn add @hundh/contao-utils-bundle
Usage example:
import { DomUtil, ArrayUtil } from '@hundh/contao-utils-bundle';
DomUtil.scrollTo(myNode, 100);
Following imports possible:
- ArrayUtil
- DomUtil
- EventUtil
- GeneralUtil
- UrlUtil
- UtilsBundle
UtilsBundle holds all utilities classes:
- array
- dom
- event
- url
- util
Example usage: UtilsBundle.util.isTruthy(value)
If you run the package code at least once, the UtilsBundle object will be written to window.utilsBundle;.
Usage example:
let UtilsBundle = window.utilsBundle;