Show FlatPickr calender for date input

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
kartikbhat
Posts: 40
Joined: 02 Dec 2021, 17:18

Show FlatPickr calender for date input

Post by kartikbhat » 14 Dec 2022, 06:30

how can I make flatpickr show expected datepicker for input for of type date.

at Admin panel,

Code: Select all

v-bind:config="Aimeos.flatpickr.datetime"
is not showing default datepicker itself..
Help to to show flatpickr specific date picker..
TIA :)

User avatar
aimeos
Administrator
Posts: 7907
Joined: 01 Jan 1970, 00:00

Re: Show FlatPickr calender for date input

Post by aimeos » 15 Dec 2022, 07:42

To show the VueJS date picker component, make sure you have a parent node <div class="vue"> in the template. This will create a VueJS application for that block like here:
https://github.com/aimeos/ai-admin-jqad ... m.php#L287

Then, the input field for the date picker must look like this one:
https://github.com/aimeos/ai-admin-jqad ... #L432-L437
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply