fixed date group configuration issue..

This commit is contained in:
Cüneyt Şentürk
2021-02-27 16:54:39 +03:00
parent 0bb114de71
commit 096d9f29be
3 changed files with 23 additions and 10 deletions

View File

@ -24,20 +24,21 @@
:model="{{ $attributes['model'] }}"
@endif
:config="{
:date-config="{
wrap: true, // set wrap to true only when using 'input-group'
allowInput: true,
@if (!empty($attributes['show-date-format']))
altInput: true,
altFormat: '{{ $attributes['show-date-format'] }}',
@endif
@if (!empty($attributes['date-format']))
dateFormat: '{{ $attributes['date-format'] }}'
dateFormat: '{{ $attributes['date-format'] }}',
@endif
@if (!empty($attributes['min-date']))
minDate: {{ $attributes['min-date'] }}
minDate: {{ $attributes['min-date'] }},
@endif
@if (!empty($attributes['max-date']))
maxDate: {{ $attributes['max-date'] }}
maxDate: {{ $attributes['max-date'] }},
@endif
}"

View File

@ -22,7 +22,7 @@
:model="{{ $attributes['model'] }}"
@endif
:config="{
:date-config="{
allowInput: true,
@if (!empty($attributes['show-date-format']))
altInput: true,
@ -34,13 +34,13 @@
wrap: true,
enableTime: true,
@if (!empty($attributes['seconds']))
enableSeconds: true
enableSeconds: true,
@endif
@if (!empty($attributes['min-date']))
minDate: {{ $attributes['min-date'] }}
minDate: {{ $attributes['min-date'] }},
@endif
@if (!empty($attributes['max-date']))
maxDate: {{ $attributes['max-date'] }}
maxDate: {{ $attributes['max-date'] }},
@endif
}"