nicko170
nicko170
FFilament
Created by nicko170 on 1/6/2024 in #❓┊help
Minimal Theme iOS scrolling issue
Anyone seen scrolling issues with minimal theme?! I am in love with it - but the menu scrolling on iOS on chrome is just nope. Safari is a little better, if I get the menu bar to go away it kind of works.. Not sure how to fix tbh.. anyone have any thoughts?
8 replies
FFilament
Created by nicko170 on 9/24/2023 in #❓┊help
Mounting Create Options Forms on a Select
Surely there's a better way to fill the customer_id on the create form modal - what am I missing?
Forms\Components\Select::make('qualification_id')
->relationship('qualification', 'qualification_number', modifyQueryUsing: fn(Builder $query) => $query->orderBy('created_at', 'desc'))
->searchable(['qualification_number', 'search', 'result.location_id', 'result.location_name'])->preload()->reactive()->required()
->createOptionForm(fn(Form $form, Forms\Get $get) => QualificationResource::form($form->model(Qualification::class)))
->createOptionAction(fn(Forms\Components\Actions\Action $action, Get $get) => $action
->mountUsing(function (Form $form) use ($get) {
$form->fill();

$livewire = $form->getLivewire();
data_set($livewire, $form->getStatePath() . '.customer_id', $get('../../customer_id'));
})

)
->getOptionLabelFromRecordUsing(fn(Qualification $record) => view('components.qualification_info', compact('record'))->render())
->createOptionModalHeading('Service Qualification')
->allowHtml(),
Forms\Components\Select::make('qualification_id')
->relationship('qualification', 'qualification_number', modifyQueryUsing: fn(Builder $query) => $query->orderBy('created_at', 'desc'))
->searchable(['qualification_number', 'search', 'result.location_id', 'result.location_name'])->preload()->reactive()->required()
->createOptionForm(fn(Form $form, Forms\Get $get) => QualificationResource::form($form->model(Qualification::class)))
->createOptionAction(fn(Forms\Components\Actions\Action $action, Get $get) => $action
->mountUsing(function (Form $form) use ($get) {
$form->fill();

$livewire = $form->getLivewire();
data_set($livewire, $form->getStatePath() . '.customer_id', $get('../../customer_id'));
})

)
->getOptionLabelFromRecordUsing(fn(Qualification $record) => view('components.qualification_info', compact('record'))->render())
->createOptionModalHeading('Service Qualification')
->allowHtml(),
Any thoughts? 🙂
1 replies