Yohan
Yohan
FFilament
Created by Yohan on 5/26/2024 in #❓┊help
Exporter Importer on JSON model fields
ahah GPT4 comments 🙃 You're welcome
10 replies
FFilament
Created by Yohan on 5/26/2024 in #❓┊help
Exporter Importer on JSON model fields
10 replies
FFilament
Created by Yohan on 5/26/2024 in #❓┊help
Exporter Importer on JSON model fields
@stursby I had to make a custom Job to handle my need. using LeagueCsv\Writer to handle writing to a csv file. Quite simple in the end. I can share a gist with you if you like.
10 replies
FFilament
Created by Yohan on 7/30/2024 in #❓┊help
Customise the modal form view
You rock !! It works smoothly, thank you for your time @Leandro Ferreira !!
6 replies
FFilament
Created by Yohan on 7/30/2024 in #❓┊help
Customise the modal form view
Thanks @Leandro Ferreira , but how do I pass data to the view attached to the ViewField? I need to dynamically retrieve the value of one of my select fields (to display the corresponding video)? FormsComponentsSelect::make(‘type’) ->options([ VariableType::TEXT->value => ‘Text’, VariableType::URL->value => ‘URL’, VariableType::IMAGE->value => ‘Image’, ]) ->required() ->live(),
6 replies
FFilament
Created by Yohan on 11/21/2023 in #❓┊help
SaveFormAction : requiresConfirmation()
It works like this too :
php protected function getSaveFormAction(): Action
{
return Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->requiresConfirmation()
->modalDescription("If you change the associated landing page your current config will be lost")
->modalIconColor('danger')
->action(fn () => $this->save())
->keyBindings(['mod+s']);
}
php protected function getSaveFormAction(): Action
{
return Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->requiresConfirmation()
->modalDescription("If you change the associated landing page your current config will be lost")
->modalIconColor('danger')
->action(fn () => $this->save())
->keyBindings(['mod+s']);
}
6 replies
FFilament
Created by Yohan on 11/21/2023 in #❓┊help
SaveFormAction : requiresConfirmation()
Thanks @Leandro Ferreira ! I've managed to get it to work, in fact it seems to be the submit() method that's preventing the modal from being displayed, but I can't figure out why. Anyway thanks for your help 🙏
6 replies