Image Gallery On Modal like ImageColumn

I have to make an image selector to which I pass a collection like this ImageProduct::all() where customers select images and then they are passed to a PDF as an array. Do I necessarily have to make a custom component?Is there something already done? I saw the component ImageColumn used here https://demo.filamentphp.com/blog/links I would like to have the same thing as a component of the form in which images are selected to be placed in the PDF Any advice ? I dont need the code just a guideline to follow. Any help it's appreciated. My Code: Actions\Action::make('pdf') ->label('PDF') ->color('success') ->icon('heroicon-o-document-text') ->form([ //ImageSelector | ImageColumn / DONT know HOW TO DO ]) ->requiresConfirmation() ->action(PDFController::estimatePDF(...)),
Solution:
Maybe a litle detour to a CheckboxList? Here you can create the options with a image as description https://filamentphp.com/docs/3.x/forms/fields/checkbox-list#setting-option-descriptions...
Jump to solution
2 Replies
Darkavatar23
Darkavatar233mo ago
Maybe i have to render a table in the form and capture selected rows ?
Solution
Tieme
Tieme3mo ago
Maybe a litle detour to a CheckboxList? Here you can create the options with a image as description https://filamentphp.com/docs/3.x/forms/fields/checkbox-list#setting-option-descriptions