diff --git a/bzGantt.js b/bzGantt.js index 9f2379c..ddd587a 100644 --- a/bzGantt.js +++ b/bzGantt.js @@ -149,6 +149,13 @@ class BZgantt extends Buildoz { for(const task of this.tasks){ const startIdx = this.getDayIndex(firstDate, new Date(task.start)) const taskEndIdx = this.getDayIndex(firstDate, new Date(task.end)) + const markup = {} + for(const [key, value] of Object.entries(task)){ + if(value == null || typeof value === 'object') continue + markup[`task.${key}`] = value + } + if(!markup['task.color']) markup['task.color'] = '#CCC' + markup.width = (startIdx