Helder Lima
Helder Lima
FFilament
Created by Helder Lima on 4/23/2025 in #❓┊help
Little help with custom form input
🙏
11 replies
FFilament
Created by Helder Lima on 4/23/2025 in #❓┊help
Little help with custom form input
Thank you Dennis, you killed it
11 replies
FFilament
Created by Helder Lima on 4/23/2025 in #❓┊help
Little help with custom form input
and its in fact updating my livewire component
11 replies
FFilament
Created by Helder Lima on 4/23/2025 in #❓┊help
Little help with custom form input
No description
11 replies
FFilament
Created by Helder Lima on 4/23/2025 in #❓┊help
Little help with custom form input
Smol progress, the afterStateUpdated is firing on every change on sliders 🙂
11 replies
FFilament
Created by Helder Lima on 4/23/2025 in #❓┊help
Little help with custom form input
I'm using two sliders to make up the state for this component, looks like it doesnt auto read back the state property this way
11 replies
FFilament
Created by Helder Lima on 4/23/2025 in #❓┊help
Little help with custom form input
Yes, its a live component. In fact I've tried live and reactive, no joy. Also tried to dd the state on the afterStateUpdated, but it wont fire unless I chance anything else on the form, dont really know why. I guess I'm missing something in the component view...
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
>
<div x-data="{
state: $wire.$entangle('{{ $getStatePath() }}'),
horizontal: 50,
vertical: 50,
updateState() {
this.state = `${this.horizontal},${this.vertical}`;
console.log(this.state);
},
init() {
if (this.state) {
const parts = this.state.split(',');
this.horizontal = Number(parts[0]) || 50;
this.vertical = Number(parts[1]) || 50;
}

this.$watch('horizontal', () => this.updateState());
this.$watch('vertical', () => this.updateState());
}
}">
<!-- Interact with the `state` property in Alpine.js -->
<div class="flex flex-col gap-y-2">
<div class="flex flex-col">
<label class="text-xl font-bold" for="horizontal">Horizontal <span x-text="horizontal"></span></label>
<div>
<div class="w-full">
<input x-model="horizontal" class="w-full" name="horizontal" type="range" min="1" max="100" value="50">
</div>
<div class="flex w-full justify-between">
<span class="flex-1 text-left">Esquerda</span>
<span class="flex-1 text-center">Meio</span>
<span class="flex-1 text-right">Direita</span>
</div>
</div>
</div>
.....

</div>
</x-dynamic-component>
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
>
<div x-data="{
state: $wire.$entangle('{{ $getStatePath() }}'),
horizontal: 50,
vertical: 50,
updateState() {
this.state = `${this.horizontal},${this.vertical}`;
console.log(this.state);
},
init() {
if (this.state) {
const parts = this.state.split(',');
this.horizontal = Number(parts[0]) || 50;
this.vertical = Number(parts[1]) || 50;
}

this.$watch('horizontal', () => this.updateState());
this.$watch('vertical', () => this.updateState());
}
}">
<!-- Interact with the `state` property in Alpine.js -->
<div class="flex flex-col gap-y-2">
<div class="flex flex-col">
<label class="text-xl font-bold" for="horizontal">Horizontal <span x-text="horizontal"></span></label>
<div>
<div class="w-full">
<input x-model="horizontal" class="w-full" name="horizontal" type="range" min="1" max="100" value="50">
</div>
<div class="flex w-full justify-between">
<span class="flex-1 text-left">Esquerda</span>
<span class="flex-1 text-center">Meio</span>
<span class="flex-1 text-right">Direita</span>
</div>
</div>
</div>
.....

</div>
</x-dynamic-component>
11 replies
FFilament
Created by Vp on 10/5/2023 in #❓┊help
filter by relationship created at
No description
14 replies
FFilament
Created by Vp on 10/5/2023 in #❓┊help
filter by relationship created at
I have a hasMany relationship and I want to filter by its create_at year, but filament doesnt filter out the records that doesnt not match the filter
14 replies
FFilament
Created by Vp on 10/5/2023 in #❓┊help
filter by relationship created at
What relationship you got set between your models?
14 replies
FFilament
Created by Vp on 10/5/2023 in #❓┊help
filter by relationship created at
Would be nice to see the solution for this, got exactly the same problem.
14 replies
FFilament
Created by Helder Lima on 10/6/2023 in #❓┊help
Missing create button after v3 upgrade
No description
6 replies