aurawindsurfing
aurawindsurfing
FFilament
Created by aurawindsurfing on 6/26/2024 in #❓┊help
->action can not be used with ->visible on Resource View Page, why?
I noticed that if you use ->visible on Action it can not be used together with ->action clousure. Why action is never triggered in that case? ->url() works just fine but not action.
33 replies
FFilament
Created by aurawindsurfing on 2/19/2024 in #❓┊help
How to scope render hook to one Panel only?
Hey! I register my render hook in AppPanelProvider like so:
FilamentView::registerRenderHook(
name: PanelsRenderHook::TOPBAR_END,
hook: fn (): View => view('filament.app.topbar-login-redirect'),
scopes:
);
FilamentView::registerRenderHook(
name: PanelsRenderHook::TOPBAR_END,
hook: fn (): View => view('filament.app.topbar-login-redirect'),
scopes:
);
But I can not figure out how and what scope to use. I have separate panel for logged in user and for guest. Whats the easiest way to achieve it? AppPanelProvider - guest users UserPanelProvider - logged in users Thanks!
3 replies
FFilament
Created by aurawindsurfing on 2/7/2024 in #❓┊help
Build in export action - why two files
Hi, As everything with filament export action just works great! I'm wondering however why: 1. File being exported is being broken into headers file and records file if all I need is one file. 2. Why downloading a file is not supported out of the box? What am I missing? Thanks!
2 replies
FFilament
Created by aurawindsurfing on 1/22/2024 in #❓┊help
How to add css to custom theme?
Hi Guys, Can someone please explain to me like to a 5 year old how to use full tailwindcss class. I know I should put it in a custom theme css but how exactly? Which files to modify and where? I know about custom themes https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme but how to add whole tailwindcss to it for local dev and then purge it? I'm using vite. Thank you so much!
35 replies
FFilament
Created by aurawindsurfing on 11/28/2023 in #❓┊help
Repeater access current $record
Hi guys, I can not figure out a way to access current record outside of repeater schema:
Section::make('Collected information')->schema([
Repeater::make('allClientData')
->label('Data Points')
->deletable(fn($record) => auth()->user()->team_id === $record->team_id)
->relationship()
->schema([
Select::make('client_data_type_id')
->disabled(fn($record) => auth()->user()->team_id === $record->team_id)
->options(ClientDataType::all()->sortBy('sort')->pluck('name', 'id'))
->label('Type')
->required(),

Textarea::make('value')
->label('Notes')
])
->addActionLabel('Add note')
->defaultItems(0)
->grid(2),
])->collapsible()->collapsed(),
Section::make('Collected information')->schema([
Repeater::make('allClientData')
->label('Data Points')
->deletable(fn($record) => auth()->user()->team_id === $record->team_id)
->relationship()
->schema([
Select::make('client_data_type_id')
->disabled(fn($record) => auth()->user()->team_id === $record->team_id)
->options(ClientDataType::all()->sortBy('sort')->pluck('name', 'id'))
->label('Type')
->required(),

Textarea::make('value')
->label('Notes')
])
->addActionLabel('Add note')
->defaultItems(0)
->grid(2),
])->collapsible()->collapsed(),
Inside schema $record works outside of it it does not. Thank you for havinga look!
5 replies