Can you give me a deeper explanation how those product variants would work? Or any links to external projects/tutorials/forum questions with more details? I can't create a video from just two words description.
Would it be possible to have a collapse in Filament tables without losing the headers? Initially, when I started watching the video, I thought that button at the end would do that, but I was quite disappointed hahaha.
@@FilamentDaily The Flowbite UI package has a functional example; accessing the source code requires payment, but you can get an idea from the example found on the Flowbite website, under the "Application" section, specifically in "Advanced Tables" with the "Table with expandable rows" example. I managed to do this in Filament, but the problem is that, to achieve the same behavior, I lose the column headers.
Amazing example for this kind of tables!👍
Great! good explanation.. very usefull! keep this way
nice example Thank you
Great work, is it possible to add sortable functionality to the Market value column?
But does it make much sense to have sortable on a column with many different currencies? It's like comparing apples to oranges.
Can we have a persistent layout (@persist) on the sidebar and topbar so they don’t flicker on page changes ?
Not sure, haven't done it myself.
how to export single record in filament ?
create an export action on each row ofcause, seletect row will be export once u chose that "export" action
ExportAction::make()
->exporter(OrderExporter::class)
->formats([
ExportFormat::Xlsx,
ExportFormat::Csv,
]),
in OrderExporter class that extends Filament\Actions\Exports\Exporter
u need
public static function getColumns(): array
{
return [
// ExportColumn::make('id')->label('ID'),
ExportColumn::make('Order Ref Code #'),
ExportColumn::make('client.name')->label('Client Name'),
// ExportColumn::make('total_cost'),
ExportColumn::make('total_grand')->label('Order Total $'),
ExportColumn::make('payment_method')->label('Pay Thru'),
ExportColumn::make('payment_status')->label('Pay Status'),
ExportColumn::make('payment_id')->label('Pay Transaction TxID'),
ExportColumn::make('status'),
// ExportColumn::make('info'),
ExportColumn::make('type'),
ExportColumn::make('created_by'),
ExportColumn::make('created_at'),
ExportColumn::make('updated_at'),
];
}
public static function getCompletedNotificationBody(Export $export): string
{
$body = 'Your order export has completed and ' . number_format($export->successful_rows) . ' ' . str('row')->plural($export->successful_rows) . ' exported.';
if ($failedRowsCount = $export->getFailedRowsCount()) {
$body .= ' ' . number_format($failedRowsCount) . ' ' . str('row')->plural($failedRowsCount) . ' failed to export.';
}
return $body;
}
create table action
Hi can u create a video about product variants in filament
Can you give me a deeper explanation how those product variants would work? Or any links to external projects/tutorials/forum questions with more details?
I can't create a video from just two words description.
You could check how lunarphp did it. There should be product variants
@@krekas yeah right.
@@krekas Yes. But I would like to see how to replicate in the filament.
@@mohamednafil8983 check the code of lunarphp and you will see
Would it be possible to have a collapse in Filament tables without losing the headers? Initially, when I started watching the video, I thought that button at the end would do that, but I was quite disappointed hahaha.
Can you give some example of how that "collapse" should work? Any links to other projects or screenshots (non-Filament) where that works?
@@FilamentDaily The Flowbite UI package has a functional example; accessing the source code requires payment, but you can get an idea from the example found on the Flowbite website, under the "Application" section, specifically in "Advanced Tables" with the "Table with expandable rows" example. I managed to do this in Filament, but the problem is that, to achieve the same behavior, I lose the column headers.
@@FilamentDaily I had replied earlier, but my comment was deleted haha I think it's because I included the link.