Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #113369
    natejacobson
    Participant

    Can I use slots or templates to render content inside Smart Gantt in JavaScript?

    #113386
    alex.morris22
    Participant

    Hi,

    You can use the taskTemplate

    const gantt = document.querySelector(‘smart-gantt-chart’);

    gantt.taskTemplate = function (task) {
        return 

    <div class=”custom-task”>
    ${task.label}
    <span>(${task.progress}%)</span>
    </div>
    `;
    };`

    Regards,

    Alex

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.