heimrichhannot-contao-components / flatpickr
A shim repositoy for flatpickr as contao component.
Installs: 521
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:contao-component
Requires
This package is not auto-updated.
Last update: 2024-11-10 06:28:08 UTC
README
A shim repositoy for Flatpickr as Contao Component.
Install
composer require heimrichhannot-contao-components/flatpickr
Config
Add the following to your config (keep keys to prevent double integration):
Contao 4
$GLOBALS['TL_JAVASCRIPT']['flatpickr'] = 'assets/flatpickr/dist/flatpickr.min.js|static'; $GLOBALS['TL_USER_CSS']['flatpickr'] = 'assets/flatpickr/dist/flatpickr.min.css|static'; // Optional: Localization $GLOBALS['TL_JAVASCRIPT']['flatpickr'] = 'assets/flatpickr/dist/l10n/de.js|static';
Contao 3
$GLOBALS['TL_JAVASCRIPT']['flatpickr'] = 'assets/components/flatpickr/dist/flatpickr.min.js|static'; $GLOBALS['TL_USER_CSS']['flatpickr'] = 'assets/components/flatpickr/dist/flatpickr.min.css|static'; // Optional: Localization $GLOBALS['TL_JAVASCRIPT']['flatpickr'] = 'assets/components/flatpickr/dist/l10n/de.js|static';