Ashk
Ashk
FFilament
Created by Ashk on 11/1/2024 in #❓┊help
ActionGroup and modal
Hello, I've been trying for a while to get an action group on a model, but I'm not succeeding at all. Does anyone have any ideas on how to do this? Filament\Actions\ActionGroup doesn't seem to be compatible. Thank for your help!
2 replies
FFilament
Created by Ashk on 9/25/2024 in #❓┊help
Navigation group translated label and sort
No description
6 replies
FFilament
Created by Ashk on 9/12/2024 in #❓┊help
Infolist and action group
Hi, I'm looking for a way to have an action group in an infolist, specifically an action dropdown to be more precise. I've tried a few things and can't find anything, maybe it's just not implemented?
22 replies
FFilament
Created by Ashk on 7/30/2024 in #❓┊help
Accessing a form component from another
Hello, I would like to know if it is possible to access another component from a component. For example, I'd like to modify the placeholder of a TextInput according to a record field selected in a Select. I tried something like this, I can access the other component, but getSelectedRecord is still null, as if the state didn't change
[
Forms\Components\Select::make('object_id'),
Forms\Components\TextInput::make('title')
->placeholder(fn(HasForms $livewire) => $livewire
->getForm('form')
?->getComponent('object_id')
->getSelectedRecord()
?->getAttribute('something')
]
[
Forms\Components\Select::make('object_id'),
Forms\Components\TextInput::make('title')
->placeholder(fn(HasForms $livewire) => $livewire
->getForm('form')
?->getComponent('object_id')
->getSelectedRecord()
?->getAttribute('something')
]
I've got this working, but I'd like if possible to avoid redoing an SQL request for nothing.
[
Forms\Components\Select::make('object_id'),
Forms\Components\TextInput::make('title')
->placeholder(fn(Forms\Get $get) => Object::find($get('object_id'))->something)
]
[
Forms\Components\Select::make('object_id'),
Forms\Components\TextInput::make('title')
->placeholder(fn(Forms\Get $get) => Object::find($get('object_id'))->something)
]
TY !
24 replies
FFilament
Created by Ashk on 7/17/2024 in #❓┊help
Select relationship and "virtual" title attribute
Hello, I have a Customer model with a first_name and last_name field. A virtual field full_name which represents the concat of these 2 fields. In another resource, which has an belongsTo Customer relationship, I'd like a select based on full_name.
Forms\Components\Select::make('customer_id')
->searchable()
->relationship(
name: 'customer',
titleAttribute: 'email' # working well with email, but I would like to filter by full_name instead of email
),
Forms\Components\Select::make('customer_id')
->searchable()
->relationship(
name: 'customer',
titleAttribute: 'email' # working well with email, but I would like to filter by full_name instead of email
),
TY
7 replies
FFilament
Created by Ashk on 2/22/2024 in #❓┊help
Topbar weird behavior when bottom scroll
No description
4 replies
FFilament
Created by Ashk on 8/21/2023 in #❓┊help
Select::createOptionForm not always work
Hello, I'm using a Select with createOptionForm in RegisterTenant and EditTenant. It's working pretty well in edit page but not in register page, the modal doesn't appear. I tink the feature doesns't works outside Filament panel layout, there is maybe a missing dependency ? Thanks for help ❤️
5 replies
FFilament
Created by Ashk on 8/18/2023 in #❓┊help
Global resources in tenant
Hello, I'm using tenant, I would like to know if it's possible to have "global resources". What I mean by that is: - resources common to all tenants - ideally with a generic URL without the tenant ID
13 replies
FFilament
Created by Ashk on 8/17/2023 in #❓┊help
TenantSet event flood
Hello, I'm trying multi tenant feature added in v3, I listened the event TenantSet and with only one page refresh the event is sent more than 10 times, is it normal ? I want to use this event to load custom thing depending on which tenant is used. Thanks !
2 replies