© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
4 replies
Matthew

How to "rerender" custom elememts in blade using alpinejs

I will try to explain this the best I can. Assume I have this blade file:
<x-filament-panels::page>
    <x-filament::section>
        <div
            class="grid grid-flow-col justify-stretch gap-4"
            x-data="{ message: '' }"
        >
            <div
                x-model="message"
                x-ignore
                ax-load
                ax-load-src="{{ ... }}"
                x-data="codeEditor()"
            >
            </div>
            <customEl x-ref="container" x-text="message"></customEl>
        </div>
    </x-filament::section>
</x-filament-panels::page>
<x-filament-panels::page>
    <x-filament::section>
        <div
            class="grid grid-flow-col justify-stretch gap-4"
            x-data="{ message: '' }"
        >
            <div
                x-model="message"
                x-ignore
                ax-load
                ax-load-src="{{ ... }}"
                x-data="codeEditor()"
            >
            </div>
            <customEl x-ref="container" x-text="message"></customEl>
        </div>
    </x-filament::section>
</x-filament-panels::page>

Everytime
message
message
is changed, I want to rerender customEl. Due to the nature of that component, just having x-text isnt enough. As I said it needs to be rerendered, but Im not sure how I can approach this. Any ideas?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom AlpineJS validation
FilamentFFilament / ❓┊help
3y ago
sidebar in custom blade
FilamentFFilament / ❓┊help
2y ago
Custom field with alpinejs function
FilamentFFilament / ❓┊help
2y ago
How to Build Custom Widgets Without using Blade/Livewire Components?
FilamentFFilament / ❓┊help
2y ago