intelogie / bower-dmn-js
Installs: 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 3
Language:JavaScript
This package is auto-updated.
Last update: 2024-11-29 04:39:52 UTC
README
This is a packaged version of dmn-js for standalone usage or via bower.
Usage
Fetch the dependency via bower install dmn-js
or download individual files from the dist folder.
Include the file into your project
<!-- dependencies ... --> <!-- dmn-js --> <script src="bower_components/dmn-js/dist/dmn-viewer.js"></script> <script> // require is part of bundle file var DmnViewer = window.DmnJS; var xml; // my DMN xml var viewer = new DmnViewer({ container: 'body' }); viewer.importXML(xml, function(err) { if (err) { console.log('error rendering', err); } else { console.log('rendered'); } }); </script>
Checkout the examples repository for a complete example of how to use dmn-js with bower.
License
Use under the terms of the bpmn-js license.