0.7.8 • Published 3 years ago
@seera/elaa-rule-engine-react-lib v0.7.8
rule-engine-react-lib
Made with create-react-library
Install
npm install --save rule-engine-react-lib
Usage
import React, {useRef} from 'react';
import Draw from '@seera/elaa-rule-engine-react-lib';
import '@seera/elaa-rule-engine-react-lib/css/DrawComponent.css';
import Rules from './Rules';
//import {initialDiagram, otherDiagram} from './Diagrams';
function App() {
const onSubmit = (data) => {
console.log(data);
console.log(JSON.stringify(data.ruleDefinition));
}
const onPreview = (ruleDefinition) => {
console.log(ruleDefinition);
console.log(JSON.stringify(ruleDefinition));
}
return (
<>
<div className="workflow">
<Draw rules={Rules}
saveEnabled={false}
loadEnabled={false}
exportEnabled={false}
fullScreenEnabled={false}
onSubmit={onSubmit}
onPreview={onPreview}
loadWorkflow={initialDiagram}
resetEnabled={true}
lang={"en"}
/>
</div>
</>
);
}
export default App;
License
MIT © ricardopaulotajawal
0.7.8
3 years ago
0.7.7
3 years ago
0.7.6
3 years ago
0.7.5
3 years ago
0.7.4
3 years ago
0.7.3
3 years ago
0.7.2
3 years ago
0.7.1
3 years ago
0.7.0
3 years ago
0.6.6
3 years ago
0.6.5
3 years ago
0.6.4
3 years ago
0.6.3
3 years ago
0.6.2
3 years ago
0.6.1
3 years ago
0.6.0
3 years ago
0.5.0
3 years ago
0.4.10
3 years ago
0.3.10
3 years ago
0.0.55
3 years ago