Proculair B.V.
Proculair B.V.
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
I figured it out! 🥳
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
Okay I've made some progress. This works:
->headerActions([
Action::make('header')
->action(function (Livewire $livewire) {
$record = $this->getOwnerRecord()->contacts()->first();
$this->replaceMountedTableAction('view', $record->id);
}),
])
->actions([
ViewAction::make(),
])
->headerActions([
Action::make('header')
->action(function (Livewire $livewire) {
$record = $this->getOwnerRecord()->contacts()->first();
$this->replaceMountedTableAction('view', $record->id);
}),
])
->actions([
ViewAction::make(),
])
Now I want to figure out how to trigger this behaviour from another place in livewire
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
I've also tried the following: https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#programmatically-triggering-actions
->headerActions([
Action::make('test')
->button()
->action(function () {
$contact = $this->getOwnerRecord()->contacts()->first();
$livewire->mountAction('view', [$contact->id]);
}),
])
->actions([
ViewAction::make(),
])
->headerActions([
Action::make('test')
->button()
->action(function () {
$contact = $this->getOwnerRecord()->contacts()->first();
$livewire->mountAction('view', [$contact->id]);
}),
])
->actions([
ViewAction::make(),
])
This just results in nothing happening
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
No description
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
No description
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
No description
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
No description
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
No description
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
Yes, I understand that the routing part is seperate. But how do I programmatically open a edit/view modal in a contactrelation manager?
14 replies
FFilament
Created by Proculair B.V. on 10/17/2024 in #❓┊help
Programmatically open relationManager View/Edit modal
To communicate between the resource and the relationmanager, I will probably use livewire events/listeners
14 replies
FFilament
Created by Proculair B.V. on 10/4/2024 in #❓┊help
Enable Flare JS error logging
This fixed it for me:
<?php

namespace App\Providers\Filament;

use Filament\Panel;
use Filament\PanelProvider;
use Filament\View\PanelsRenderHook;
use Illuminate\Support\Facades\Blade;
// ...

class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
// ...

->renderHook(
PanelsRenderHook::BODY_END,
fn (): string => Blade::render("@vite('resources/js/app.js')")
);
}
}
<?php

namespace App\Providers\Filament;

use Filament\Panel;
use Filament\PanelProvider;
use Filament\View\PanelsRenderHook;
use Illuminate\Support\Facades\Blade;
// ...

class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
// ...

->renderHook(
PanelsRenderHook::BODY_END,
fn (): string => Blade::render("@vite('resources/js/app.js')")
);
}
}
4 replies
FFilament
Created by Proculair B.V. on 9/28/2024 in #❓┊help
Align BulkActions
No description
3 replies
FFilament
Created by Proculair B.V. on 9/7/2024 in #❓┊help
Version 3.2.97 breaks copying form fields when viewing them
I saw the form and implemented the same infolist. Displaying the infolist works. Copying is still impossible, I'm kinda lost
18 replies
FFilament
Created by Proculair B.V. on 9/7/2024 in #❓┊help
Version 3.2.97 breaks copying form fields when viewing them
Will look into how they did that, thank you for helping me along
18 replies
FFilament
Created by Proculair B.V. on 9/7/2024 in #❓┊help
Version 3.2.97 breaks copying form fields when viewing them
Yeah I see those are rendered as an infolist instead of disabled form i think
18 replies
FFilament
Created by Proculair B.V. on 9/7/2024 in #❓┊help
Version 3.2.97 breaks copying form fields when viewing them
I do not think that is in the filament demo
18 replies
FFilament
Created by Proculair B.V. on 9/7/2024 in #❓┊help
Version 3.2.97 breaks copying form fields when viewing them
It is an markdowneditor field on a relationshipmanager. Viewed using a viewaction slideover
18 replies
FFilament
Created by Proculair B.V. on 9/7/2024 in #❓┊help
Version 3.2.97 breaks copying form fields when viewing them
No description
18 replies
FFilament
Created by Proculair B.V. on 9/7/2024 in #❓┊help
Version 3.2.97 breaks copying form fields when viewing them
No i did not
18 replies