Grasshopper
Grasshopper
FFilament
Created by terumi on 4/25/2024 in #❓┊help
Importing with extra data
Add a getOptionsFormComponents method to your importer with your form fields.
3 replies
FFilament
Created by terumi on 4/25/2024 in #❓┊help
Importing with extra data
public static function getOptionsFormComponents(): array
{
return [
TextInput::make('name')
->label('List Name')
->required()
->columnSpanFull(),
Textarea::make('description')
->label('Description')
->columnSpanFull(),

Toggle::make('dupeCheck')
->label('Dupe Check')
->default(true)
->helperText('Check for duplicates in just this list'),

Toggle::make('globalDupeCheck')
->label('Dupe Check: All Existing Lists')
->default(true)
->helperText('Check for duplicates across all lists'),

Select::make('leadType')
->label('Lead Type')
->options(LeadType::class)
->default(LeadType::ELECTRICITY->value)
->required()
->columnSpanFull(),
];
}
public static function getOptionsFormComponents(): array
{
return [
TextInput::make('name')
->label('List Name')
->required()
->columnSpanFull(),
Textarea::make('description')
->label('Description')
->columnSpanFull(),

Toggle::make('dupeCheck')
->label('Dupe Check')
->default(true)
->helperText('Check for duplicates in just this list'),

Toggle::make('globalDupeCheck')
->label('Dupe Check: All Existing Lists')
->default(true)
->helperText('Check for duplicates across all lists'),

Select::make('leadType')
->label('Lead Type')
->options(LeadType::class)
->default(LeadType::ELECTRICITY->value)
->required()
->columnSpanFull(),
];
}
3 replies
FFilament
Created by Grasshopper on 4/22/2024 in #❓┊help
Cluster: SubNavigationPosition
The interesting thing is I only had to set it on one of the resources and it moved to the top. Seems to me this should be a setting on the Cluster since its the root node. But it worked.
11 replies
FFilament
Created by Grasshopper on 4/22/2024 in #❓┊help
Cluster: SubNavigationPosition
Ok, I understand now and you are correct. The Cluster is well a cluster of Resources. Putting the setting in the Resource did in fact move the position to the Top. Thanks!
11 replies
FFilament
Created by Grasshopper on 4/22/2024 in #❓┊help
Cluster: SubNavigationPosition
You are correct in you logic, but this is a Cluster not a Resource. My assumption was that the Cluster would use the same setting for the SubNavigationPosition but does not appear to be the case?
11 replies
FFilament
Created by Grasshopper on 4/22/2024 in #❓┊help
Cluster: SubNavigationPosition
Correct
11 replies