JibayMcs
Custom live field not updated in a custom action
Hi everyone !
Today I'm facing an issue with two custom objects, an Action and a Field.
The problem is while I'm interacting with the search input (a live entangled property) I need to update a list of items in realtime, but the method
afterStateUpdated(function (TasksList $component, $state) { ... });
is never called.
I clearly see the update
endpoint called in real-time like the screenshot joined, but my dd($state)
in the afterStateUpdated()
function of my custom field is never called.
My custom action is a modal containing a form, with my custom field, the code is really simple as below:
(Thanks in advance for your help ! 🙂 )
And the real problem (I think) is on my field and his reactivity.
This field is really simple, there's a search input:
And the associated "tasks" list: <template x-for="task in tasks" :key="task.id">
The "construction" of my field view is like this:3 replies
Create a "carousel" modal on ListRecords
Hi everyone !
I want to make a special thing to navigate through records on a table using a tweak of "ViewAction" (when you click on a row in the table
$table->recordAction()
I've made a copy of the ViewAction class to add Previous/Next button in extraFooterActions
But I struggle on changing the content of the "data" on the modal form instance.
Just below you'll find my actual class !
Thank's for your help 🙂3 replies