Jesse Hendriks
Jesse Hendriks
FFilament
Created by Jesse Hendriks on 2/20/2024 in #❓┊help
Using $record in ListRecords and page table data in widget
I want to use a parameter in a ListRecords page. This is working fine, except when I want to add interactive widgets. I'm using the ExposesTableToWidgets trait to expose table data, and in the widget I'm using the InteractsWithPageTable and I have added the protected function getTablePage() as described in the documentation (https://filamentphp.com/docs/3.x/panels/resources/widgets#accessing-page-table-data-in-the-widget) When I'm using the widget $record is not set anymore. (it is loading twice, first time its good, second time is without the property). Is it possible to use ListRecords and have interactive Widgets based on the table data?
2 replies
FFilament
Created by Jesse Hendriks on 9/7/2023 in #❓┊help
Using Torchlight in Action with custom modal content
In my project I'm using Torchlight.dev. When using this on a Filament page it works perfectly. But when I want to use it in a action with custom modal content it is not rendered. The problem is also described in the docs of torchlight: https://torchlight.dev/docs/clients/laravel#un-rendered-blocks. I obviously registered the middleware, since it is working on the pages. But how can I make it work inside the action? Filament v3 (v3.0.39) Tables\Actions\Action::make('embed') ->label(__('Integration Code')) ->button() ->outlined() ->modalSubmitAction(false) ->icon('heroicon-o-code-bracket') ->slideOver() ->modalContent(fn(): View => view('filament.site.pages.flow-embed-info-page')),
4 replies