trilobit-gmbh / trilobit-datepicker
Datepicker integration for Contao Open Source CMS
Installs: 1 010
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:contao-component
Requires
- contao-components/installer: ^1.0.9
README
Stellt einen einfachen jQuery Datepicker für die weitere, individuelle Implementierung via Javascript zur Verfügung.
https://www.npmjs.com/package/@chenfengyuan/datepicker
Einbindung
<link href="/assets/trilobit-datepicker/dist/datepicker.min.css" rel="stylesheet">
<script src="/assets/trilobit-datepicker/dist/datepicker.min.js"></script>
oder via $GLOBALS
:
$GLOBALS['TL_CSS'][] = 'assets/trilobit-datepicker/dist/datepicker.min.css|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'assets/trilobit-datepicker/dist/datepicker.min.js|static';
Verwendung
<input data-toggle="datepicker">
<textarea data-toggle="datepicker"></textarea>
<div data-toggle="datepicker"></div>
<script>
$('[data-toggle="datepicker"]').datepicker();
</script>
ergänzende Infos
sind in der README.md unter /assets/trilobit-datepicker/dist/README.md
zu finden.