basicprimitives
Version:
Basic Primitives Diagrams for JavaScript - data visualization components library that implements organizational chart and multi-parent dependency diagrams, contains implementations of JavaScript Controls and PDF rendering plugins.
26 lines (22 loc) • 510 B
JavaScript
export default function LabelAnnotationTemplate() {
var _template = ["div",
{
"class": ["bp-item", "bp-label-annotation"]
}
];
function template() {
return _template;
}
function getHashCode() {
return "defaultLabelAnnotationTemplate";
}
function render(event, data) {
var itemConfig = data.context;
data.element.innerHTML = itemConfig.title;
}
return {
template: template,
getHashCode: getHashCode,
render: render
};
};