See below:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Statamic.booting(() => { | |
| Alpine.magic('useField', (el) => { | |
| return () => { | |
| const vm = closestVm(el); | |
| if (!vm) { | |
| return; | |
| } | |
| const data = Alpine.reactive({ | |
| value: vm.value, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use App\Models\Tag; | |
| use Livewire\Attributes\Locked; | |
| use Livewire\Attributes\Url; | |
| use Livewire\Attributes\Validate; | |
| use Livewire\Volt\Component; | |
| use Livewire\WithPagination; | |
| new class extends Component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Usage */ | |
| const observer = new IntersectionObserver((entries) => { | |
| // ... | |
| }, { | |
| rootMargin: '0px 0px -20% 0px' // Must be all four values | |
| // ... | |
| }); | |
| debugRootMargin(observer); |
OlderNewer