-
Hi there, Thank you for maintaining and adding onto this package. I'm wondering how to use the "goTo" funcs, like <!-- ... -->
<span>
<span>
{{ $startsAt->englishMonth }}
</span>
<x-button wire:click="goToPreviousMonth">
{{ __('Previous Month') }}
</x-button>
<x-button wire:click="goToCurrentMonth">
{{ __('Current Month') }}
</x-button>
<x-button wire:click="goToNextMonth">
{{ __('Next Month') }}
</x-button>
</span>
<livewire:my-calendar /> I have tried putting |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So you can't do that I'm afraid! That's a limitation of Livewire itself. What you need to do, is take:
And put it into a Blade by itself, let's say you put it in
Then where you have
Instead you want:
This way, your blade is contained within the context of the Livewire Component, and your wire:click methods will work. |
Beta Was this translation helpful? Give feedback.
So you can't do that I'm afraid! That's a limitation of Livewire itself.
What you need to do, is take:
And put it into a Blade by itself, let's say you put it in
Then where you have
Instead you want:
This way, your blade is con…