Browse Source

Merge pull request #1515 from attentive20/2.0

Column filters - the ability to enter dates in different formats
Jiang Qinghua 4 years ago
parent
commit
cbf2c2eac9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Grid/Column/Filter/Between.php

+ 1 - 0
src/Grid/Column/Filter/Between.php

@@ -125,6 +125,7 @@ class Between extends Filter
             'locale'           => config('app.locale'),
             'locale'           => config('app.locale'),
             'allowInputToggle' => true,
             'allowInputToggle' => true,
             'format'           => $this->dateFormat,
             'format'           => $this->dateFormat,
+            'extraFormats' => ['DD-MM-YYYY', 'DD/MM/YYYY', 'DD.MM.YYYY', 'DD,MM,YYYY'],
         ];
         ];
 
 
         $options = json_encode($options);
         $options = json_encode($options);