Sylfel
Sylfel
FFilament
Created by dyo on 6/13/2024 in #❓┊help
Problem in accessing widget current record
Did you try to remove your « mount » function ?
8 replies
FFilament
Created by Proculair B.V. on 1/4/2024 in #❓┊help
Split action footer alignment, delete btn start & submit btn end
Hi, You can solve this by customize footer action :
ViewAction::make()
->slideOver()
->extraModalFooterActions([
EditAction::make()
->button()
->slideOver()
->modalFooterActions(fn (Record $record, Action $action) => [
DeleteAction::make()
->requiresConfirmation()
->record($record)
->cancelParentActions()
->extraAttributes([
'class' => 'me-auto',
]),
$action->getModalCancelAction(),
$action->getModalSubmitAction(),
])
]);
ViewAction::make()
->slideOver()
->extraModalFooterActions([
EditAction::make()
->button()
->slideOver()
->modalFooterActions(fn (Record $record, Action $action) => [
DeleteAction::make()
->requiresConfirmation()
->record($record)
->cancelParentActions()
->extraAttributes([
'class' => 'me-auto',
]),
$action->getModalCancelAction(),
$action->getModalSubmitAction(),
])
]);
Where 'me-auto' class is a margin-auto to push items
6 replies
FFilament
Created by Sylfel on 3/8/2024 in #❓┊help
CreateAction with arguments
OOOOOhhhh !!!
->form(function (array $arguments) {
return [...]
->form(function (array $arguments) {
return [...]
form can have a function ... !!!! THX a lot 😁
14 replies
FFilament
Created by Sylfel on 3/8/2024 in #❓┊help
CreateAction with arguments
But it's a like a hack (IMO) every ... no ! Not this one
14 replies
FFilament
Created by Sylfel on 3/8/2024 in #❓┊help
CreateAction with arguments
fow now, i use this:
$this->getMountedAction()->getArguments()['category']
$this->getMountedAction()->getArguments()['category']
14 replies
FFilament
Created by Sylfel on 3/8/2024 in #❓┊help
CreateAction with arguments
To Loading model, yes, but how to use it in required method ?
14 replies