WireUi Hooks
Available Hooks
WireUI Hooks is a simple way to perform actions at determinate moments. It is possible to fire a notification when a Notification component is ready, or call a Livewire action when WireUi is loaded. See available hooks bellow
1 2Wireui.hook('load', () => console.log('wireui is ready to use')) 3 4Wireui.hook('notifications:load', () => { 5 $wireui.notify({ 6 title: 'Profile saved!', 7 description: 'Your profile was successfully saved', 8 icon: 'success' 9 })10})11 12Wireui.hook('dialog:load', () => {13 $wireui.dialog({14 title: 'Profile saved!',15 description: 'Your profile was successfully saved',16 icon: 'success'17 })18})19 20Or custom dialog hook21 22Wireui.hook('dialog:custom:load', () => {})