open up a table header action modal when the component is mounted

is there any way to open up a table header action modal when the component is mounted?
the idea is to show the modal if my query string has a value. so if true, i want to show it, is possible?
public function mount()
{
$userWantsToOpenConfig = (bool) request()->openConfig;

if ($userWantsToOpenConfig) {
// i wanna open a modal header action
}
}
public function mount()
{
$userWantsToOpenConfig = (bool) request()->openConfig;

if ($userWantsToOpenConfig) {
// i wanna open a modal header action
}
}
3 Replies
ericmp #2
ericmp #2OP15mo ago
@ me if reply please, thanks 🙏
ericmp #2
ericmp #2OP15mo ago
wow just fking awesome thanks a lot
->extraAttributes(function (): array {
if (request()->openConfig) {
return ['wire:init' => new HtmlString('mountTableAction(\'configure\')')];
}

return [];
})
->extraAttributes(function (): array {
if (request()->openConfig) {
return ['wire:init' => new HtmlString('mountTableAction(\'configure\')')];
}

return [];
})
Want results from more Discord servers?
Add your server