F
Filamentβ€’17mo 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
ZedoXβ€’17mo ago
- Remove BulkActions to hide the header - Disable pagination to hide the footer
ZedoX
ZedoXβ€’17mo ago
Alternatively if u want to hide them whilst still retaining the functionality (BulkActions & Pagination) just use CSS to hide them
Gush
GushOPβ€’17mo 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
ZedoXβ€’17mo ago
->bulkActions([])
Gush
GushOPβ€’17mo ago
THANK YOU
Jamie Cee
Jamie Ceeβ€’17mo ago
Where is the disable pagination part?
ZedoX
ZedoXβ€’17mo 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 Ceeβ€’17mo ago
Got it, cheers πŸ™‚
Want results from more Discord servers?
Add your server