Custom Page

Can someone use table builder in custom page of a resource?
Solution:
Follow the table builder docs ("Adding table builder to a livewire component")
Jump to solution
3 Replies
Hussain4real
Hussain4realOP11mo ago
i got this error when i tried to:
App\Filament\Resources\Modules\Assessment\AssessmentResource\Pages\AssessmentOverview::table(): Argument #1 ($table) must be of type Filament\Tables\Table, Filament\Infolists\Infolist given, called in /Users/amisha/www/SMS/vendor/filament/infolists/src/Concerns/InteractsWithInfolists.php on line 55
App\Filament\Resources\Modules\Assessment\AssessmentResource\Pages\AssessmentOverview::table(): Argument #1 ($table) must be of type Filament\Tables\Table, Filament\Infolists\Infolist given, called in /Users/amisha/www/SMS/vendor/filament/infolists/src/Concerns/InteractsWithInfolists.php on line 55
class AssessmentOverview extends Page
{

protected static string $resource = AssessmentResource::class;

protected static string $view = 'filament.resources.modules.assessment.assessment-resource.pages.assessment-overview';

public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('id'),
]);
}
}
class AssessmentOverview extends Page
{

protected static string $resource = AssessmentResource::class;

protected static string $view = 'filament.resources.modules.assessment.assessment-resource.pages.assessment-overview';

public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('id'),
]);
}
}
solved
terumi
terumi9mo ago
@Hussain4real how?
Solution
Dennis Koch
Dennis Koch9mo ago
Follow the table builder docs ("Adding table builder to a livewire component")
Want results from more Discord servers?
Add your server