diff options
author | 2017-02-08 10:13:29 -0500 | |
---|---|---|
committer | 2017-02-08 10:15:00 -0500 | |
commit | f8a8d5192b1e5013d9e2f699be54b072ef39d5f0 (patch) | |
tree | b7a65bb0a7d70a9dc24c064113868e5f3b8e6a09 /dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/README.md | |
parent | 72a80fbff7120630576ccd5aa67c20818c2943c7 (diff) |
Initial OpenECOMP UI/DMaapBC commit
Change-Id: Ia492e1b88311b9bed4c31f593b28deaaad73b7e4
Signed-off-by: talasila <talasila@research.att.com>
Diffstat (limited to 'dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/README.md')
-rw-r--r-- | dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/README.md | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/README.md b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/README.md new file mode 100644 index 0000000..a767a20 --- /dev/null +++ b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/README.md @@ -0,0 +1,46 @@ +# bpmn-js Bower Package + +This is a packaged version of [bpmn-js](https://github.com/bpmn-io/bpmn-js) for usage via [bower](http://bower.io). + + +## Usage + +Install the dependency via + +``` +bower install bpmn-js +``` + +Include the file into your project + +```html +<!-- dependencies ... --> + +<!-- bpmn-js --> +<script src="bower_components/bpmn-js/dist/bpmn-viewer.js"></script> + +<script> + // require is part of bundle file + var BpmnViewer = window.BpmnJS; + + var xml; // ADD BPMN 2.0 XML HERE + var viewer = new BpmnViewer({ container: 'body' }); + + viewer.importXML(xml, function(err) { + + if (err) { + console.log('error rendering', err); + } else { + console.log('rendered'); + } + }); +</script> +``` + + +Checkout the [examples repository](https://github.com/bpmn-io/bpmn-js-examples) for a complete example of [how to use bpmn-js with bower](https://github.com/bpmn-io/bpmn-js-examples/tree/master/simple-bower). + + +## License + +Use under the terms of the [bpmn-js license](http://bpmn.io/license).
\ No newline at end of file |