Hi,
I want to add plus icon in DayCellRenderer when the mouse hover it like below image, how to add listener of the hover event in DayCellRenderer.
the example code like below:
dayCellRenderer = (cellData: any, headerDomConfig: any) => {
const dayHeader = headerDomConfig?.children?.[0];
if (dayHeader) {
const ePlus = DomHelper.createElement({
tag: 'button',
style: 'margin-left: auto; padding: 5px;',
text: '+',
});
// @ts-ignore
ePlus.addEventListener('click', (e: any) => {
e.stopPropagation();
//do something
});
dayHeader.children.push(ePlus);
}
};