Pre-packaged, bower ready version of dmn-js
HTML JavaScript CSS
Permalink
Failed to load latest commit information.
dist
test
.gitignore
LICENSE
README.md
bower.json

README.md

dmn-js (pre-packaged version)

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.