hofff / contao-calendarfield

GNU Lesser General Public License v3.0
18 stars 3 forks source link

Add JS template to be added via layout for initializing all date fields #52

Open cliffparnitzky opened 2 years ago

cliffparnitzky commented 2 years ago

Add a template e.g. js_flatpickr.html5.

//... add library here
<script>flatpickr('input[type="date"]');</script>

The template can be added via the layout.