program - tab btns toggle
This commit is contained in:
parent
104fb09ea2
commit
57751f78fc
1 changed files with 5 additions and 5 deletions
|
|
@ -27,7 +27,7 @@
|
||||||
x-data="{title: 'Calendrier'}"
|
x-data="{title: 'Calendrier'}"
|
||||||
x-text="title"
|
x-text="title"
|
||||||
:class="tab === title ? 'strong' : ''"
|
:class="tab === title ? 'strong' : ''"
|
||||||
@click="tab = title"
|
@click="if (tab === title) { tab = 'Programme' } else {tab = title}"
|
||||||
></button>
|
></button>
|
||||||
<button
|
<button
|
||||||
x-data="{
|
x-data="{
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
}"
|
}"
|
||||||
x-text="title"
|
x-text="title"
|
||||||
:class="tab === filterTitle ? 'strong' : ''"
|
:class="tab === filterTitle ? 'strong' : ''"
|
||||||
@click="tab = filterTitle; filter = title"
|
@click="if (tab === filterTitle) { tab = 'Programme' } else { tab = filterTitle; filter = title }"
|
||||||
></button>
|
></button>
|
||||||
<button
|
<button
|
||||||
x-data="{
|
x-data="{
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
}"
|
}"
|
||||||
x-text="title"
|
x-text="title"
|
||||||
:class="tab === filterTitle ? 'strong' : ''"
|
:class="tab === filterTitle ? 'strong' : ''"
|
||||||
@click="tab = filterTitle; filter = title"
|
@click="if (tab === filterTitle) { tab = 'Programme' } else { tab = filterTitle; filter = title }"
|
||||||
></button>
|
></button>
|
||||||
<button
|
<button
|
||||||
x-data="{
|
x-data="{
|
||||||
|
|
@ -60,13 +60,13 @@
|
||||||
}"
|
}"
|
||||||
x-text="title"
|
x-text="title"
|
||||||
:class="tab === filterTitle ? 'strong' : ''"
|
:class="tab === filterTitle ? 'strong' : ''"
|
||||||
@click="tab = filterTitle; filter = title"
|
@click="if (tab === filterTitle) { tab = 'Programme' } else { tab = filterTitle; filter = title }"
|
||||||
></button>
|
></button>
|
||||||
<button
|
<button
|
||||||
x-data="{title: 'Saisons précédentes'}"
|
x-data="{title: 'Saisons précédentes'}"
|
||||||
x-text="title"
|
x-text="title"
|
||||||
:class="tab === title ? 'strong' : ''"
|
:class="tab === title ? 'strong' : ''"
|
||||||
@click="tab = title"
|
@click="if (tab === filterTitle) { tab = 'Programme' } else { tab = title }"
|
||||||
></button>
|
></button>
|
||||||
</section>
|
</section>
|
||||||
<section class="page-title">
|
<section class="page-title">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue