x-flow-design-js
v0.1.12
Published
基于bpmn封装的流程设计器,可以扩展图元,属性,XML。
Downloads
24
Maintainers
Readme
Usage
To get started, create a bpmn-js instance and render BPMN 2.0 diagrams in the browser:
var xml; // my BPMN 2.0 xml
var viewer = new BpmnJS({
container: 'body'
});
viewer.importXML(xml, function(err) {
if (err) {
console.log('error rendering', err);
} else {
console.log('rendered');
}
});
Checkout our examples for many more supported usage scenarios.
Dynamic Attach/Detach
You may attach or detach the viewer dynamically to any element on the page, too:
var viewer = new BpmnJS();
// attach it to some element
viewer.attachTo('#container');
// detach the panel
viewer.detach();