package.src.jquery.treetable.columnrenderer.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ibm-gantt-chart Show documentation
Show all versions of ibm-gantt-chart Show documentation
IBM Gantt Chart Component, integrable in Vanilla, jQuery, or React Framework.
The newest version!
import Gantt from '../../core/core';
const ColumnRendererPrototype = {
createShape(activity, parentElt, ctx) {
return parentElt;
},
getText(row) {
return row.name;
},
drawContent(elt, icon, text, object, ctx) {
// Done through the render method
/* if (icon) {
const img = document.createElement('img');
img.className = 'image-content';
img.src = icon;
img.alt = '';
img.style.float = 'left';
elt.appendChild(img);
}
if (text) {
elt.appendChild(document.createTextNode(text));
} */
},
};
export default ColumnRendererPrototype;