Ignore column on export #1518
-
First of all, I'd like to express my appreciation for livewire-powergrid and to thank you @luanfreitasdev and the entire community for your dedication to developing and maintaining it. I have a question regarding the export functionality: Any assistance would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @OrakFR, You can use visibleInExport. For example: //MyPowergridTable.php
public function columns(): array
{
return [
Column::make('ID', 'id')
->searchable()
->visibleInExport(false) //Hide in export
->sortable(),
Column::make('Name', 'name')
->searchable()
->hidden()
->visibleInExport(true) //Show in export
->sortable(),
Column::make('Created At', 'created_at_formatted') // By default, shows in export.
];
} |
Beta Was this translation helpful? Give feedback.
Hi @OrakFR,
You can use visibleInExport.
For example: