zunnzunn / vue-ganttastic

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

Slot label for g-gantt-row doesn't work #110

Open safiahalkoum opened 4 months ago

safiahalkoum commented 4 months ago

When I try to use the label slot with a label column title in the g-gantt-chart, nothing is displayed.

After checking the code, I can see that this is because the slot contains {{ label }} and so I can't customize it properly. I guess I should leave . Secondly, the condition restricts the user from being able to customize his label if the label-column-title is entered.

I think it's better to use the label slot if we have a label column title. It's more normal because we may have a lot of information to display, so we need this design with a custom label.

zunnzunn commented 4 months ago

When using label-column-title, you may use the slot label-column-row of GGanttChart. Take a look at the docs.

Though agreed, it'd be cleaner to re-use the existing slot in GGanttRow in this case. I will have to think of a hopefully simple way to implement that.