Hi,
i want to create custom context pad element with a custom icon
i implemented ContextPadProvider and was able to create a new element, but the problem i’m not able to add my svg icon to the element, its shows empty element
getContextPadEntries(element: Base): ContextPadItems{
return {
'newNode': {
group: 'model',
className: 'add-task-icon',
title: 'Add a new node',
}
};
}
//css
.add-task-icon{
background: url('/assets/plus-icon.svg') !important;
}
i have looked at the bpmn example page, but i couldn’t find a solution for my problem
any idea how to do it ?
Thanks