F
Filament2y ago
Gush

Resource Table Customization

i wanna get rid of the header and footer of the table, keeping only the row
Solution:
- Remove BulkActions to hide the header - Disable pagination to hide the footer...
Jump to solution
8 Replies
Solution
ZedoX
ZedoX2y ago
- Remove BulkActions to hide the header - Disable pagination to hide the footer
ZedoX
ZedoX2y ago
Alternatively if u want to hide them whilst still retaining the functionality (BulkActions & Pagination) just use CSS to hide them
Gush
GushOP2y ago
i think i did that, but it still shows here is my code
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('type_id'),
Tables\Columns\TextColumn::make('post'),
Tables\Columns\TextColumn::make('company'),
Tables\Columns\TextColumn::make('location'),
Tables\Columns\TextColumn::make('title'),
Tables\Columns\TextColumn::make('description'),
Tables\Columns\TextColumn::make('deadline')
->date(),
Tables\Columns\TextColumn::make('contact'),
])
// ->filters([
// //
// ])
// ->actions([
// Tables\Actions\EditAction::make(),
// ])
// ->bulkActions([
// Tables\Actions\DeleteBulkAction::make(),
// ])
->contentGrid([
'md' => 2,
'xl' => 3,
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('type_id'),
Tables\Columns\TextColumn::make('post'),
Tables\Columns\TextColumn::make('company'),
Tables\Columns\TextColumn::make('location'),
Tables\Columns\TextColumn::make('title'),
Tables\Columns\TextColumn::make('description'),
Tables\Columns\TextColumn::make('deadline')
->date(),
Tables\Columns\TextColumn::make('contact'),
])
// ->filters([
// //
// ])
// ->actions([
// Tables\Actions\EditAction::make(),
// ])
// ->bulkActions([
// Tables\Actions\DeleteBulkAction::make(),
// ])
->contentGrid([
'md' => 2,
'xl' => 3,
]);
}
ZedoX
ZedoX2y ago
->bulkActions([])
Gush
GushOP2y ago
THANK YOU
Jamie Cee
Jamie Cee2y ago
Where is the disable pagination part?
ZedoX
ZedoX2y ago
Here's how to do it in v2, I'm not sure if the same is applicable to v3. https://filamentphp.com/docs/2.x/tables/getting-started#pagination
Jamie Cee
Jamie Cee2y ago
Got it, cheers 🙂

Did you find this page helpful?