Skip to content

Commit 50de7db

Browse files
committed
weekday short by default
1 parent 0a9dd88 commit 50de7db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FilamentJalaliServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,11 @@ public function packageBooted(): void
8989
return $this;
9090
});
9191

92-
DateTimePicker::macro('jalali', function () {
92+
DateTimePicker::macro('jalali', function (bool $weekdaysShort = true) {
9393
$this
9494
->native(false)
9595
->firstDayOfWeek(6)
96+
->extraAttributes(['data-weekdays-short' => ($weekdaysShort ? 'short' : 'long')], true)
9697
->view('filament-jalali::jalali-date-time-picker');
9798

9899
return $this;

0 commit comments

Comments
 (0)