f. Common Livewire Events ❗️

Since Livewire v3 is used all throughout the codebase, different kinds of events are dispatched for every operations.

Among these operations include common events that are just reused from module to module.

Common Events

EventPurposeNotes / Examples
rowSelectedNotifies components that a table row has been selected
populatedDropdownNotifies components that dropdown(s) are now populated
populateDropdownPopulates a dropdown
setFiltersSets filter values for tables
filteringNotifies components that a filtering action is happening
tableFilteredNotifies that a table has finished filtering
refreshTableRefreshes the table records
successProc{module}Successful CRUD/procedure; suffixed with the module namee.g., successProcEmployee, successProcPerson
errorProc{module}Failed CRUD/procedure; suffixed with the module namee.g., errorProcEmployee, errorProcPerson
successExportSuccessful data export
errorExportFailed data export
closedSidebarSidebar is closed (notifies listeners)
closedModalModal is closed
clearSelectedClears the current table selection
clearClears a form
closeCloses a sidebar
delete{module}Dispatches delete actions; suffixed with the module namee.g., deleteWorkSchedule, deleteJob

➡️ Next up!

g. Setting Privileges to Components

Built with LogoFlowershow Cloud