F
Filamentβ€’10mo 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 (???) {
???
})
)
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 fi
No description
1 Reply
toeknee
toekneeβ€’10mo ago
Presume it would be:
TextEntry::make('View Action Plan')
->hintAction(
Action::make('openModal')
->icon('heroicon-m-clipboard')
->form([ TextInput::make('value') ])
->action(function ($data) {
$value = $data['value'];

})
)
TextEntry::make('View Action Plan')
->hintAction(
Action::make('openModal')
->icon('heroicon-m-clipboard')
->form([ TextInput::make('value') ])
->action(function ($data) {
$value = $data['value'];

})
)