charlie
How to use Alpine in Filament?
If I have this very basic example:
MyPage.php
my-page.blade.php
I can't understand how I can access the field state from alpine...
What if I want to change the state of
another_text_input
each time my_text_input
state changes, for example?26 replies
From Livewire to Apine
Hi there!
This field doesn't need any request to work. What would be the appropriate way/syntax to translate live() / afterStateUpdated() methods to Alpine.js?
Preferably extracting the js code elsewhere.
Should I extend the field class or can I go with extraAttributes?
Thanks!
1 replies
$getRecord() in a form changes when I click on an action button or a relation manager tab
Hi,
I'm trying to create a custom field as explained here:
https://filamentphp.com/docs/3.x/forms/fields/custom#custom-field-classes
From the generated view, if I dump record like that:
It works fine, until I click on a button launching a modal or a Tab switching to a different RelationManager below the form. The record seems to be emptied, and the code in custom field can't access to the record anymore unless I refresh the page...
Is it normal? And what could I do?
5 replies