Skip to content

How to use wire:modal on the backend (Livewire controller) #452

Description

@nenadsijan

Dear @PhiloNL
This solution <button wire:modal="edit-user, @js(['user' => 1)">Open</button> works perfectly on the blade page, but how to use this wire:modal call from Livewire controller ?
Correctly for this scenario when i need to open new modal from backend.
$this->dispatch('modal.open', component: 'modals.edit-user', arguments: ['user' => 1]);
Thanks in advance
Nenad

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions