flatpickr calendar display related options in powergrid datetime range filter #1447
Unanswered
ashvin-php
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently it doesn't look any staightforward way to pass flatpickr options for its calendar display at date/date-time column filters for powergrid. For example: For default language, suppose to set FirstDayOfWeek as Monday, its require configuration 'firstDayOfWeek' = 1.
So, tried to provide this firstDayOfWeek along with plugins.flatpickr.locale configuration array but it is not working.
Can anyone please help to achieve this?
'plugins' => [
/*
* https://flatpickr.js.org
*/
'flatpickr' => [
'locales' => [
'en' => [
'dateFormat' => 'd/m/Y H:i',
'enableTime' => true,
'time_24hr' => true,
'firstDayOfWeek' => 1,
],
],
],
Beta Was this translation helpful? Give feedback.
All reactions