Component
Components
  • 🏠turbotech-component
  • 🚀Installations
  • 📦Required Package
  • 📦Laravel-Modules Style
  • ________________________________
  • Data Displays
    • Form View
      • Phone Formatted
    • Charts
      • Line Chart
      • Bar Chart
      • Pie Chart
      • Doughnut Chart
      • Polar Area Chart
      • Radar Chart
      • Scatter Chart
    • Stats
      • Trending
      • Simple
      • Brand
  • Elements
    • Buttons
      • Default Button
      • Primary Button
      • Secondary Button
      • Warning Button
      • Danger Button
      • Success Button
    • Forms Input
      • English Name
      • Khmer Name
      • Phone
      • URL
      • Camel URL
      • Email
  • Headings
    • Card Heading
    • Header
  • Layouts
    • Panels
      • Main Card
Powered by GitBook
On this page
  1. Headings

Header

Main header or Content header

PreviousCard HeadingNextLayouts

Last updated 2 years ago

Was this helpful?

CtrlK
  • Params
  • Components Laravel

Was this helpful?

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
<x-heading title="Name Cards" icon="#users" :func="$function" new/>

'excel' => "generateCSV('')", // optional but required function
'csv' => "generateExcel('')", // optional but required function
'pdf' => "previewForm('')" // optional but required function
]