FilamentF
Filamentβ€’3y ago
marctonon

Open a Modal from Infolist Text Entry hintAction

Hello smart people! πŸ‘‹

In the Docs you can find the statement:

Defining a infolist component action


... You can customize the trigger button of an action, and even open a modal with little effort ...


May I do something like:

TextEntry::make('View Action Plan')
                        ->hintAction(
                            Action::make('openModal')
                                ->icon('heroicon-m-clipboard')
                                ->action(function (???) {
                                    ???
                                })
                        )


What exactly I have to do to open a Modal from Infolist? Would be possible to add a Button somewhere?


fi
image.png
Was this page helpful?