zunnzunn / vue-ganttastic

Simple, interactive and highly customizable Gantt chart component for Vue 3
https://zunnzunn.github.io/vue-ganttastic/
584 stars 145 forks source link

I am trying to use slots section in GantChart of ur package and i don't know whether it is working or not. Can u show me an simple example how it works ?? #88

Closed Khant135 closed 1 year ago

Khant135 commented 1 year ago

image

zunnzunn commented 1 year ago
 <g-gantt-chart
    ...
  >
    <template #upper-timeunit="{ label, value }"> Brother </template>
    <template #timeunit="{ label, value }"> Broski </template>
    <template #bar-tooltip="{ bar }"> Bruh </template>
    ...
  </g-gantt-chart>

Result:
image

Here's more info on how scoped slots work in general.