dmn-js-decision-table-custom-z
Version:
A decision table view for dmn-js
20 lines (15 loc) • 686 B
JavaScript
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
import DecisionRulesCellEditorComponent from './components/DecisionRulesCellEditorComponent';
var HIGH_PRIORITY = 1500;
var RulesEditor = function RulesEditor(components) {
_classCallCheck(this, RulesEditor);
components.onGetComponent('cell', HIGH_PRIORITY, function (_ref) {
var cellType = _ref.cellType;
if (cellType === 'rule') {
return DecisionRulesCellEditorComponent;
}
});
};
export { RulesEditor as default };
RulesEditor.$inject = ['components'];
//# sourceMappingURL=DecisionRulesEditor.js.map