Closed ree-grestark closed 1 year ago
$this->dispatchBrowserEvent('pharaonic.select2.init');
to reload all the Select2
$this->dispatchBrowserEvent('pharaonic.select2.load', [ 'component' => $this->id, 'target' => '#input-here' ]);
to reload a specific Select2 input
and can you explain where should this code placed? // Init Event $this->dispatchBrowserEvent('pharaonic.select2.init');
// Load Event $this->dispatchBrowserEvent('pharaonic.select2.load', [ 'component' => $this->id, 'target' => '#input-here' ]);