F
Filament5d ago
Dhru

Change the default maxContentWidth from the panel provider for a specific page

In the documentation there is a way to set the ->maxContentWidth in the panel provider There is one list page where I want a 'full' width due to the nature of data displayed. So I want the ->maxContentWidth('full) for that page, but for the rest I am okay with the filament default ->maxContentWidth('6xl') What is the best approach to achieving this ?
1 Reply
Dhru
DhruOP5d ago
Sorry I am dumb For anyone else looking you can simple override the maxContentWidth function in your page, as follows: public function getMaxContentWidth(): ?string { return 'full'; // Override the content width for this page } (i tried this earlier but accidentally set to protected so it kept giving me an error)
Want results from more Discord servers?
Add your server