A shim repositoy for flatpickr as contao component.

1.4.0 2019-04-04 14:27 UTC

This package is not auto-updated.

Last update: 2023-01-21 20:56:51 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';