Dhru
Change the default maxContentWidth from the panel provider for a specific page
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)
3 replies
Fileupload: How to show a default image that the user can override with their own image
okay i have resolved it my use case was a bit different as I was trying to have an action (button) set the fileupload form input i was just missing the live() modifier and just set the
Forms\Components\FileUpload::make('image')
->label('Image (Optional)')
->image()
->live()
then i was able to use in my action button
$livewire->form->fill($formState);
8 replies
Fileupload: How to show a default image that the user can override with their own image
actually did a search on discord and found a solution haven't tired it yet:
Forms\Components\FileUpload::make('company_logo')
->label('Company Logo')
->image()
->required()
->rules([
'image',
'mimes:jpeg,png,jpg',
'max:2048',
'dimensions:max_width=300,max_height=200',
])
->formatStateUsing(fn ($record) => $record?->company_logo ?? asset('/images/company_logo.png'))
->disk('company_logo') // from filesystems.php
->maxFiles(1)
8 replies
Wizard Form disable next/previous
documentation seenms to have info on it actually
https://filamentphp.com/docs/3.x/forms/layout/wizard#preventing-the-next-step-from-being-loaded
7 replies
Wizard Form disable next/previous
Should be straightforward using step life cycle hooks
See under
https://filamentphp.com/docs/3.x/forms/layout/wizard#step-lifecycle-hooks
7 replies