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