F
Filament11mo ago
DivDax

Trigger action from javascript?

In my Livewire component, I have defined an action. Instead of displaying a button in my template, I would like to trigger the action using JavaScript. Is this possible?
6 Replies
LeandroFerreira
LeandroFerreira11mo ago
maybe dispatching the action in the mount method? What code did you try?
DivDax
DivDax11mo ago
I use FullCalendar. When I move an event in the calendar, the eventDrop JavaScript method is called. I want to trigger a delete action via JavaScript before moving or deleting an event.
LeandroFerreira
LeandroFerreira11mo ago
Laravel
Actions | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
DivDax
DivDax11mo ago
Don't mix livewire and filament actions. im talking about filament actions
slamx_
slamx_2mo ago
@DivDax did you find a solution?
DivDax
DivDax2mo ago
1. dispatch event from javascript 2. listen for the event in the livewre component 3. call $this->mountAction('yourAction')
Want results from more Discord servers?
Add your server
More Posts
Recourse list, only show user made entiresHi, I have a FreelancerCV resource. I want a freelancer to be able to create their own cv items. OBulkAction with polling within action closureI have a BulkAction that generates a PDF file and force downloads it. The problem is that the generaFooter Widgets on Resource PageIs it possible to put footer widgets on a resource page before (above) any relation managers?Custom Commands on Page LoadHi. How can I execute a piece of PHP code like checking license status etc. everytime a page loads?TernaryFilter null state is broken after refreshing and reseting filters.Ran into issue with `TernaryFilter`, which also applies to `TrashedFilter` that's present in https:/Decimal separator to comma instead of dotHey all, In my country we use comma as a decimal separator instead of a dot. So I would like to askHow to implement that logic from Codeigniter to Laravel FilamentPHP?Hello, I have a database structure like that: events id, name event_has_inscriptions id, event_idIs it possible to create a TextInput component with a prefix that is a SelectInput?I want the prefix to be a select action. A common example of this type of usage is international phoFilament language-switch plugin Error For Livewire.js: Uncaught (in promise) UndefinedAfter installing the Filament Language-Switch plugin, both the global search and language-switch pluFileUpload inside Builder with SpatieMediaLibrary and AWS S3I have some issues with the uploading files in combination with the Form Builder. When I use the Sp