dmn-js-decision-table
Version:
A decision table view for dmn-js
15 lines • 501 B
JavaScript
import AnnotationHeader from './components/AnnotationHeader';
import AnnotationCell from './components/AnnotationCell';
export default function AnnotationsProvider(components) {
components.onGetComponent('cell', ({
cellType
}) => {
if (cellType === 'after-label-cells') {
return AnnotationHeader;
} else if (cellType === 'after-rule-cells') {
return AnnotationCell;
}
});
}
AnnotationsProvider.$inject = ['components'];
//# sourceMappingURL=AnnotationsProvider.js.map