JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Gantt › React: how to render custom task label › Reply To: React: how to render custom task label
July 18, 2023 at 12:45 pm
#107493
ivanpeevski
Participant
Hi ceddy,
Her is an example how to use the property:
{
label: ‘PRD & User-Stories’,
dateStart: ‘2021-01-10’,
dateEnd: ‘2021-03-10’,
class: ‘product-team’,
type: ‘task’,
onRender: function(task, segment, taskElement, segmentElement, labelWrapper){
let element = document.querySelector(‘#my-element’);
labelElemnt.appendChild(element);
}
},
Since it requires programatically moving the element, it may not be supported by some specific components.
Best Regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/