gladjanus43
gladjanus43
FFilament
Created by gladjanus43 on 10/23/2024 in #❓┊help
Issue with relationmanager on complicated relation (bug?)
anybody who has some ideas? Can this be a bug? Or should I just implement a custom action with the $livewire->mountedTableAction variable
3 replies
FFilament
Created by Harvey on 10/23/2024 in #❓┊help
How to import Alpine in custom script
maybe php artisan filament:assets?
10 replies
FFilament
Created by gladjanus43 on 9/11/2024 in #❓┊help
BulkAction modal width not changeable
Solved it myself: for anyone running into this issue. I made the mistake of also having ->requiresConfirmation() dumb...
4 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
Apperantly it does have to do with the requiresConfirmation... Dont know what I did last time. But I would like to have the user confirm their action. Any ideas why it is not mounting the modal of the confirmation?
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
Some other ideas that someone has? Really stuck on this one…
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
tried looking into the livewire returned object but could not really get any wiser 🥲
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
thought so to, but if I disable it, still needs 2 clicks
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
weird thing is, when I add the mountUsing method to one of the actions inside the custom livewire table it does instanlty execute the method. this is the header action of the invite button. It does dd the value the first time clicked so I would assume it is mounted, it is just not executed
Action::make('invite')
->action(fn() => ShiftService::inviteUsersForShift($this->shift))
->mountUsing(function () {
dd('test');
})
->requiresConfirmation()
Action::make('invite')
->action(fn() => ShiftService::inviteUsersForShift($this->shift))
->mountUsing(function () {
dd('test');
})
->requiresConfirmation()
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
weird thing is, when I add the mountUsing method to one of the actions inside the custom livewire table it does instanlty execute the method.
Action::make('invite')
->action(fn() => ShiftService::inviteUsersForShift($this->shift))
->mountUsing(function () {
dd('test');
})
->requiresConfirmation()
Action::make('invite')
->action(fn() => ShiftService::inviteUsersForShift($this->shift))
->mountUsing(function () {
dd('test');
})
->requiresConfirmation()
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
this is the action which I mount when the planning is clicked
protected function showUsersAction(): Action
{
return Action::make('showUsers')
->modalHeading(false)
->modalContent(function ($arguments) {
$shift = Shift::find($arguments['shiftId']);
return view('uxit.deet.weekview.show-users', ['shift' => $shift]);
});
}
protected function showUsersAction(): Action
{
return Action::make('showUsers')
->modalHeading(false)
->modalContent(function ($arguments) {
$shift = Shift::find($arguments['shiftId']);
return view('uxit.deet.weekview.show-users', ['shift' => $shift]);
});
}
And then the view uxit.deet.weekview.show-users which is rendered does directly add the livewire table component
<div>
{{-- <x-show-user-component :$shift /> --}}
<div class="mb-5">
Shift at {{ $shift->company->name }}
</div>
<livewire:list-shift-users :$shift />
</div>
<div>
{{-- <x-show-user-component :$shift /> --}}
<div class="mb-5">
Shift at {{ $shift->company->name }}
</div>
<livewire:list-shift-users :$shift />
</div>
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
yes it does indeed work normally! And also correct it is a livewire component nested. Do you think the issue lays there? And if so can I directly render the livewire component inside the modal?
14 replies
FFilament
Created by atabegruslan on 7/24/2024 in #❓┊help
create records view. How add another custom button
Did not even know that was possible lol
56 replies
FFilament
Created by atabegruslan on 7/24/2024 in #❓┊help
create records view. How add another custom button
protected function getFormActions(): array
{
return [
Actions\Action::make('Generate Variants')->action(
self::generateVariants();
),
...
];
}
public static function generateVariants()
{

}
protected function getFormActions(): array
{
return [
Actions\Action::make('Generate Variants')->action(
self::generateVariants();
),
...
];
}
public static function generateVariants()
{

}
I think like this?
56 replies
FFilament
Created by Kyle on 7/30/2024 in #❓┊help
Get ID of parent model when making a child model using Relationship Manager via the modal
$livewire->ownerRecord gives the parent record from the relationmanager
3 replies
FFilament
Created by gladjanus43 on 7/25/2024 in #❓┊help
Call livewire function in custom form component from alpine and set state for two fields
For people trying to achieve setting multiple fields: Make your component which needs to set multiple values return a stringified json object. Then just decode it in your afterStateUpdated and set the other fields!
14 replies
FFilament
Created by gladjanus43 on 7/25/2024 in #❓┊help
Call livewire function in custom form component from alpine and set state for two fields
Thanks for the suggestion, got it working 🙂
14 replies
FFilament
Created by gladjanus43 on 7/25/2024 in #❓┊help
Call livewire function in custom form component from alpine and set state for two fields
No description
14 replies
FFilament
Created by gladjanus43 on 7/25/2024 in #❓┊help
Call livewire function in custom form component from alpine and set state for two fields
I also saw something from lara zeus (qr code generator) where a component was rendered with multiple fields. Is that something which could work, meaning that I can then set the values within the form component
14 replies
FFilament
Created by gladjanus43 on 7/25/2024 in #❓┊help
Call livewire function in custom form component from alpine and set state for two fields
That might be possible
14 replies
FFilament
Created by gladjanus43 on 7/25/2024 in #❓┊help
Call livewire function in custom form component from alpine and set state for two fields
Hmmmm, thats unfortunate. You mean that my component returns an array which can be user
14 replies