Header
Main header or Content header
Params
Param
value
Use for
title
Heading title
Title
icon
Icon class name
Display icon
:func
['list', 'grid', 'add', 'excel', 'csv', 'pdf']
onclick function
view
list, grid
view as
new
boolean
new ui false for defualt
Components Laravel
$function = (object)[
'list' => "/list", // optional
'grid' => "/grid", // optional
'add' => "/grid", // optional
'excel' => "generateCSV('')", // optional but required function
'csv' => "generateExcel('')", // optional but required function
'pdf' => "previewForm('')" // optional but required function
]
<x-heading title="Name Cards" icon="#users" :func="$function" new/>
Last updated
Was this helpful?