Stemonte
Stemonte
FFilament
Created by Damien on 1/11/2024 in #❓┊help
makeModalSubmitAction arguments are empty?
I’m using it on a suffixAction of a TextInput
7 replies
FFilament
Created by Damien on 1/11/2024 in #❓┊help
makeModalSubmitAction arguments are empty?
"version": "v3.2.10"
7 replies
FFilament
Created by Damien on 1/11/2024 in #❓┊help
makeModalSubmitAction arguments are empty?
Still not working
7 replies
FFilament
Created by Stemonte on 1/7/2024 in #❓┊help
Custom field with livewire, is it possible?
Solved by reading the documentation in the morning:
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
x-data="{ media_picker_state: $wire.$entangle('{{ $getStatePath() }}') }"
>

<input type="hidden" x-model="media_picker_state"></input>
<livewire:media-picker-modal-2 :medias="$getMedias()" :collection="$getCollection()" :media_id="$getState()">

</x-dynamic-component>
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
x-data="{ media_picker_state: $wire.$entangle('{{ $getStatePath() }}') }"
>

<input type="hidden" x-model="media_picker_state"></input>
<livewire:media-picker-modal-2 :medias="$getMedias()" :collection="$getCollection()" :media_id="$getState()">

</x-dynamic-component>
and in livewire:
<input
x-model="media_picker_state"
/>
<input
x-model="media_picker_state"
/>
2 replies