gg
How can I get live preview image with custom ui in filament?
How can I get live preview image with custom ui in filament?
for example, I have 2 layout section and FileUpload::make('image') is from first section and if upload this image I want to preview in second section live preview for this image.
3 replies
I want to show modal after saving data for choosing that users go to listing page or edit page.
I also try afterCreate() but after Create not show modal box
protected function afterCreate(): void
{
$user = $this->record;
Action::make('User Created')
->modalDescription('Would you like to configure additional settings?')
->modalIconColor('success')
->form([
Action::make('skip')
->color('secondary')
->url(MerchantResource::getUrl('index')),
Action::make('setup')
->color('primary')
->url(MerchantResource::getUrl('edit', ['record' => $merchant])),
]);
}
2 replies