tesse05
tesse05
FFilament
Created by tesse05 on 10/15/2024 in #❓┊help
issue when having a form inside a livewire component
up
3 replies
FFilament
Created by tesse05 on 8/6/2024 in #❓┊help
rich editor accept filetypes?
No description
5 replies
FFilament
Created by tesse05 on 7/10/2024 in #❓┊help
repeatable entry edit modal
Action::make('editTutor')
->label('Editar tutor/a')
->iconButton()
->icon('heroicon-o-pencil')
->modal()
->mountUsing(function (ComponentContainer $form, Tutor $record) {
return [
$form->fill([
'name' => $record->name,
'1st_surname' => $record['1st_surname'],
'2nd_surname' => $record['2nd_surname'],
'gender' => $record->gender,
'birthdate' => $record->birthdate,
'birth_city' => $record->birth_city,
'id_card_type' => $record->id_card_type,
'id_card' => $record->id_card,
'email' => $record->email,
'profession' => $record->profession,
'private_phone' => $record->private_phone,
'emergency_phone' => $record->emergency_phone,
'address' => $record->address,
'postal_code' => $record->postal_code,
'city' => $record->city,
'id_card_file' => $record->id_card_file,
]),
];
})
->form(EditForm::getSchema())
->after(function ($data, $record) {
$record->fill($data);
...
})
Action::make('editTutor')
->label('Editar tutor/a')
->iconButton()
->icon('heroicon-o-pencil')
->modal()
->mountUsing(function (ComponentContainer $form, Tutor $record) {
return [
$form->fill([
'name' => $record->name,
'1st_surname' => $record['1st_surname'],
'2nd_surname' => $record['2nd_surname'],
'gender' => $record->gender,
'birthdate' => $record->birthdate,
'birth_city' => $record->birth_city,
'id_card_type' => $record->id_card_type,
'id_card' => $record->id_card,
'email' => $record->email,
'profession' => $record->profession,
'private_phone' => $record->private_phone,
'emergency_phone' => $record->emergency_phone,
'address' => $record->address,
'postal_code' => $record->postal_code,
'city' => $record->city,
'id_card_file' => $record->id_card_file,
]),
];
})
->form(EditForm::getSchema())
->after(function ($data, $record) {
$record->fill($data);
...
})
7 replies
FFilament
Created by tesse05 on 7/29/2024 in #❓┊help
custom plugin, popup not opening when its inside a modal
No description
5 replies
FFilament
Created by Umar Farooq on 7/22/2024 in #❓┊help
Select component Allow Multiple select
Select::make() ... ->multiple()
5 replies
FFilament
Created by prouse_ on 2/8/2024 in #❓┊help
Access repeater data afterSave
maybe using this instead of afterSave() ?
-relationship('...')
->saveRelationshipsUsing(function ($state, $livewire) {
...
}
})
-relationship('...')
->saveRelationshipsUsing(function ($state, $livewire) {
...
}
})
9 replies
FFilament
Created by mile4841 on 7/22/2024 in #❓┊help
How to reorder button on edit resource
or:
$this->getCancelFormAction(), $this->getSaveFormAction()->label('new label')
$this->getCancelFormAction(), $this->getSaveFormAction()->label('new label')
28 replies
FFilament
Created by mile4841 on 7/22/2024 in #❓┊help
How to reorder button on edit resource
my fault, ->cancel() is only for modalActions, I think.. do this, it works:
$this->getCancelFormAction(), Action::make('submit')
->label('Save ...')
->submit(),
$this->getCancelFormAction(), Action::make('submit')
->label('Save ...')
->submit(),
28 replies
FFilament
Created by mile4841 on 7/22/2024 in #❓┊help
How to reorder button on edit resource
are you in the EditPage?
28 replies
FFilament
Created by mile4841 on 7/22/2024 in #❓┊help
How to reorder button on edit resource
which error
28 replies
FFilament
Created by mile4841 on 7/22/2024 in #❓┊help
How to reorder button on edit resource
do it like this:
use Filament\Pages\Actions\Action;
...
Action::make('close')
->label('Close')
->cancel(),
Action::make('submit')
->label('Save ...')
->submit(),
use Filament\Pages\Actions\Action;
...
Action::make('close')
->label('Close')
->cancel(),
Action::make('submit')
->label('Save ...')
->submit(),
28 replies
FFilament
Created by mile4841 on 7/22/2024 in #❓┊help
How to reorder button on edit resource
in "getFormActions()" you can pass manually an array of actions. just put manually the CancelAction::make() and SaveAction::make()->label('new text')
28 replies
FFilament
Created by tesse05 on 7/10/2024 in #❓┊help
repeatable entry edit modal
AH, I just have to add $record at the closure, not $this->record.
7 replies