intelogie/bower-bpmn-js

There is no license information available for the latest version (dev-master) of this package.

Installs: 107

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 14

Language:JavaScript

dev-master 2016-09-02 18:52 UTC

This package is auto-updated.

Last update: 2024-10-29 04:25:38 UTC


README

This is a packaged version of bpmn-js for standalone usage or via bower.

Usage

Download individual files from the dist folder or fetch them with dependencies via bower install bpmn-js.

Include the file(s) into your project

<!-- bpmn-js viewer -->
<script src="bower_components/bpmn-js/dist/bpmn-viewer.js"></script>

<!-- or -->

<!-- bpmn-js modeler -->
<script src="bower_components/bpmn-js/dist/bpmn-modeler.js"></script>

<script>
  // bundle exposes the viewer / modeler via the BpmnJS variable
  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 for a complete example of how to use bpmn-js with bower.

License

Use under the terms of the bpmn-js license.