WireUI
WireUi 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

Available Hooks
1Wireui.hook('load', () => console.log('wireui is ready to use'))
2 
3Wireui.hook('notifications:load', () => {
4 $wireui.notify({
5 title: 'Profile saved!',
6 description: 'Your profile was successfully saved',
7 icon: 'success'
8 })
9})
10 
11Wireui.hook('dialog:load', () => {
12 $wireui.dialog({
13 title: 'Profile saved!',
14 description: 'Your profile was successfully saved',
15 icon: 'success'
16 })
17})
18 
19Or custom dialog hook
20 
21Wireui.hook('dialog:custom:load', () => {})