Merge pull request #2954 from EnesSacid-Buker/tab-ignore-hash
Tabs component ignore hash option
This commit is contained in:
commit
64f75bb9ec
@ -8,7 +8,14 @@
|
|||||||
}
|
}
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<div data-swiper="{{ $slides }}" x-data="{ active: window.location.hash.split('#')[1] == undefined ? '{{ $active }}' : window.location.hash.split('#')[1] }">
|
<div
|
||||||
|
data-swiper="{{ $slides }}"
|
||||||
|
@if(! $attributes->has('ignore-hash'))
|
||||||
|
x-data="{ active: window.location.hash.split('#')[1] == undefined ? '{{ $active }}' : window.location.hash.split('#')[1] }"
|
||||||
|
@else
|
||||||
|
x-data="{ active: '{{ $active }}' }"
|
||||||
|
@endif
|
||||||
|
>
|
||||||
<div data-tabs-swiper>
|
<div data-tabs-swiper>
|
||||||
<ul data-tabs-swiper-wrapper {{ ((! $attributes->has('override')) || ($attributes->has('override') && ! in_array('class', explode(',', $attributes->get('override'))))) ? $attributes->merge(['class' => 'inline-flex overflow-x-scroll large-overflow-unset']) : $attributes }}>
|
<ul data-tabs-swiper-wrapper {{ ((! $attributes->has('override')) || ($attributes->has('override') && ! in_array('class', explode(',', $attributes->get('override'))))) ? $attributes->merge(['class' => 'inline-flex overflow-x-scroll large-overflow-unset']) : $attributes }}>
|
||||||
{!! $navs !!}
|
{!! $navs !!}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user