Nikos Koukos
Nikos Koukos
FFilament
Created by Nikos Koukos on 10/16/2024 in #❓┊help
Dispatching a livewire modal from Action in a Table
Hello, i am trying to open a custom livewire modal from an action inside a table i have in a resource.
Action::make('modal_with_voucher_details')
->label('Show')
->modalHeading('Show')
->icon('heroicon-o-eye')
->color('gray')
->action(function ($record, $livewire ) {
$livewire ->dispatch('openModal', 'livewire.test_modal',['record' => $record]);
})
Action::make('modal_with_voucher_details')
->label('Show')
->modalHeading('Show')
->icon('heroicon-o-eye')
->color('gray')
->action(function ($record, $livewire ) {
$livewire ->dispatch('openModal', 'livewire.test_modal',['record' => $record]);
})
But when i click the action nothing happens. I was thinking maybe its because the modal needs the
@livewire('wire-elements-modal')
@livewire('wire-elements-modal')
so that it can open, but i am not sure where i should add this so that it will work. I have an admin page which has the resources and this resource i am mentioning above. I have also the front page which is in livewire and there the modals work as intented but i cannot make them work from inside the resource action in the admin panel. Is there a workaround for what i need?
2 replies
FFilament
Created by Nikos Koukos on 10/3/2024 in #❓┊help
Search options in SelectColumn
I have created a custom column that extends SelectColumn and I have added to the view the view of SelectColumn is there something I could do inside the blade so that I can have a search like functionality similar to the one there is in Select form component?
3 replies
FFilament
Created by Nikos Koukos on 8/6/2024 in #❓┊help
Excel Exporter for Laravel Table on Livewire Component
I have a header action that exports to an excel file. I have make everything according to the docs on how to set up the exporter. My table is on a livewire component though. It shows me that the proccess has started as the notification but it does not show me the notification when it is ready. I don't want to have this notification in the admin panel but on the livewire component that i have in a view. I have added in the app.blade.php
@livewire('notifications')
@livewire('notifications')
In the Filament Table I have in the livewire component
->headerActions([
ExportAction::make()
->exporter(Products::class)
->formats([
ExportFormat::Xlsx,
])
])
->headerActions([
ExportAction::make()
->exporter(Products::class)
->formats([
ExportFormat::Xlsx,
])
])
Is there a way to achieve this?
2 replies
FFilament
Created by Nikos Koukos on 7/26/2024 in #❓┊help
How to bind the filters of a filament table created in a livewire component with a widget?
I have made a custom filament table inside a livewire component. I have made it and its working as intented. I have also made a widget that i want to bind to this table so that when i change the filters etc the stats will be automatically updated. In the filament table i have
class ReportsFilament extends Component implements HasForms, HasTable
{
use InteractsWithForms;
use InteractsWithTable;
use ExposesTableToWidgets;
class ReportsFilament extends Component implements HasForms, HasTable
{
use InteractsWithForms;
use InteractsWithTable;
use ExposesTableToWidgets;
and in the widget i have
class OrderStatsOverview extends BaseWidget
{
use InteractsWithPageTable;
protected static ?string $pollingInterval = null;

protected function getTablePage(): string
{
return ReportsFilament::class;
}

protected function getStats(): array
{
return [
Stat::make('Σύνολο παραγγελιών', $this->getPageTableQuery()->count()),
];
}

}
class OrderStatsOverview extends BaseWidget
{
use InteractsWithPageTable;
protected static ?string $pollingInterval = null;

protected function getTablePage(): string
{
return ReportsFilament::class;
}

protected function getStats(): array
{
return [
Stat::make('Σύνολο παραγγελιών', $this->getPageTableQuery()->count()),
];
}

}
In the view now i have a Livewire component and inside the view of it i call
@livewire('reports-filament')
@livewire('reports-filament')
also inside another div on this view that i call the widget
@livewire(\App\Livewire\OrderStatsOverview::class)
@livewire(\App\Livewire\OrderStatsOverview::class)
But i get Cannot assign null to property App\Livewire\OrderStatsOverview::$tableColumnSearches of type array Is there something else i need to do in order to achieve what i want? Its not inside a resource because i have a table inside a livewire component which i have made using this https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
2 replies
FFilament
Created by Nikos Koukos on 6/29/2024 in #❓┊help
FIlament Bulk Action inside Livewire Component
No description
3 replies
FFilament
Created by Nikos Koukos on 6/18/2024 in #❓┊help
Dynamically show new inputs created
No description
3 replies
FFilament
Created by Nikos Koukos on 5/30/2024 in #❓┊help
Table Layout with some columns below each other
No description
4 replies
FFilament
Created by Nikos Koukos on 5/22/2024 in #❓┊help
Date Picker
No description
4 replies
FFilament
Created by Nikos Koukos on 4/30/2024 in #❓┊help
Loading indicator in paginator
No description
3 replies
FFilament
Created by Nikos Koukos on 4/30/2024 in #❓┊help
Adding a table to a Livewire component
No description
7 replies
FFilament
Created by Nikos Koukos on 4/25/2024 in #❓┊help
RelationManager on View Resource
When i create a new relation manager and i add it in getRelations array then it automatically is shown on the edit page of my resource and there i can create,edit and delete from this. In the View page the table is shown but without being able to have actions. Is there a way so that i can have also on the View Page the same functionality of the Relation that i have in the Edit Page?
9 replies