Tiber
Tiber
FFilament
Created by Tiber on 10/31/2023 in #❓┊help
Live data in an action modal form
Thank you! Works perfectly. Didn't realize the getter worked like that.
5 replies
FFilament
Created by Tiber on 8/1/2023 in #❓┊help
Fill form after mount in v3?
Turns out it is filling the $data object correctly, it just isn't updating visually in the form for some reason...
7 replies
FFilament
Created by Tiber on 8/1/2023 in #❓┊help
Fill form after mount in v3?
At least I think...although it does still fill it if I do it on mount...
7 replies
FFilament
Created by Tiber on 8/1/2023 in #❓┊help
Fill form after mount in v3?
ooooh, okay, I think I see the issue. I just don't have it set up properly for v3.
7 replies
FFilament
Created by Tiber on 8/1/2023 in #❓┊help
Fill form after mount in v3?
(where xyz = the property name)
7 replies
FFilament
Created by Tiber on 8/1/2023 in #❓┊help
Fill form after mount in v3?
Smh, didn't even think to check the browser console. Getting: Livewire Entangle Error: Livewire property 'data.xyz' cannot be found. for each data element.
7 replies
FFilament
Created by Tiber on 8/1/2023 in #❓┊help
Abstract methods?
IDE still shows an error which is kind of annoying, but it works
3 replies
FFilament
Created by Tiber on 8/1/2023 in #❓┊help
Abstract methods?
ope, didn't put HasForms and InteractsWithForms
3 replies
FFilament
Created by Tiber on 6/14/2023 in #❓┊help
TextInput with no database column?
I think I found an easy solution: 1. I created a public array within the livewire component.
public $buyAmounts = [];
public $buyAmounts = [];
2. I created a custom view for my input field column, and did a wire:model to the array, using the main record ID as the key:
<div>
<input type="text" wire:model="buyAmounts.{{ $getRecord()->id }}" />
</div>
<div>
<input type="text" wire:model="buyAmounts.{{ $getRecord()->id }}" />
</div>
And that is basically it. Now whenever the user clicks the action button, I can just grab whatever they have typed for that row out of the array. Hopefully it doesn't all fall apart when I have a bunch of records, but it is working at the moment.
16 replies
FFilament
Created by Tiber on 6/14/2023 in #❓┊help
TextInput with no database column?
Thanks
16 replies
FFilament
Created by Tiber on 6/14/2023 in #❓┊help
TextInput with no database column?
Hmm, alright. I'll have to see if I can get that to work, assuming no one else has any easier solution. 😄
16 replies
FFilament
Created by Tiber on 6/14/2023 in #❓┊help
TextInput with no database column?
Yeah, basically this at the moment: ->modalContent(fn (Trade $record) => $this->confirmationContent($record)) But I am trying to create this custom TextInput that would allow me to also pass in its value through to confirmationContent.
16 replies
FFilament
Created by Tiber on 6/14/2023 in #❓┊help
TextInput with no database column?
Yep
16 replies