Darkavatar23
Darkavatar23
FFilament
Created by Darkavatar23 on 6/20/2024 in #❓┊help
Select getSearchResultsUsing , Test read null
No description
6 replies
FFilament
Created by Darkavatar23 on 5/17/2024 in #❓┊help
Action Of TextInput
hi i have this piece of code, what im doing wrong ? because on the repeater or normal form suffixAction or hintAction works well, but inside the fieldset didnt work anything Components\Fieldset::make('qr') .... ->schema([ ... Components\TextInput::make('qr_link') ->label("Link Diretto") ->columnSpanFull() ->hintAction( // This not work Hint or suffix// Action::make('copyCostToPrice') ->icon('heroicon-m-clipboard') ->requiresConfirmation() ->action(function ($livewire, $state) {//never reached $livewire->js(" window.navigator.clipboard.writeText('" . $state . "'); "); dd('copied'); }) ), Components\Repeater::make('links') ->schema([ .... Components\TextInput::make('link') ->suffixAction( //This Work Action::make('copy') ->icon('heroicon-s-clipboard-document-check') ->action(function ($livewire, $state) { $livewire->js(" window.navigator.clipboard.writeText('" . $state . "'); "); }) ) ->label("") ->columnSpan(1) ->readOnly() ]) ]), when i press the action icon livewire do the classic update, so i think im missing something .
2 replies
FFilament
Created by Darkavatar23 on 5/3/2024 in #❓┊help
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(...)),
5 replies
FFilament
Created by Darkavatar23 on 1/12/2024 in #❓┊help
Bulk Action Get Form Fields
Sorry to interrupt you guys but i have a problems and cant find solution on doc. ->bulkActions([ Tables\Actions\BulkAction::make('Assegna Tag') ->form([ Select::make('tags') ->label('Tag da assegnare') ->multiple() ->options(Tag::query()->pluck('name', 'id')) ->required(), ]) ->action( //Generate models for each Partners and assign it to the selected tag function (Collection $records){ dd($records); /* $records->each( function (Partner $records) use ($tags) { $records->tags()->attach($tags); $records->save(); } ); */ } ), Tables\Actions\DeleteBulkAction::make(), Tables\Actions\RestoreBulkAction::make(), ]); how i can read form data on Bulk Actions ? Documentation explain how to retrieve form data on Single Action but i cant successful use that solution on bulk
2 replies