dmn-js

js Styles
A dmn toolkit and web modeler
Version 17.2.1 License SEE LICENSE IN LICENSE
Keywords
dmndmn-jstoolkitweb modelermodelermodelingdecision modeling
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 17.2.1
- 17.2.0
- 17.1.0
- 17.0.3
- 17.0.2
- 17.0.1
- 17.0.0
- 16.8.2
- 16.8.1
- 16.8.0
- 16.7.1
- 16.7.0
- 16.6.2
- 16.6.1
- 16.6.0
- 16.5.0
- 16.4.0
- 16.3.2
- 16.3.1
- 16.3.0
- 16.2.3
- 16.2.2
- 16.2.1
- 16.2.0
- 16.1.0
- 16.0.2
- 16.0.1
- 16.0.0
- 15.1.0
- 15.0.0
- 14.7.1
- 14.7.0
- 14.6.0
- 14.5.0
- 14.4.3
- 14.4.2
- 14.4.1
- 14.4.0
- 14.3.1
- 14.3.0
- 14.2.0
- 14.1.6
- 14.1.5
- 14.1.4
- 14.1.3
- 14.1.2
- 14.1.1
- 14.1.0
- 14.0.2
- 14.0.1
- 14.0.0
- 13.0.0
- 12.3.0
- 12.2.1
- 12.2.0
- 12.1.1
- 12.1.0
- 12.0.1
- 12.0.0
- 11.1.2
- 11.1.1
- 11.1.0
- 11.0.2
- 11.0.1
- 11.0.0
- 10.3.0
- 10.2.2
- 10.2.1
- 10.2.0
- 10.1.0
- 10.0.0
- 9.4.0
- 9.3.2
- 9.3.1
- 9.3.0
- 9.2.1
- 9.2.0
- 9.1.1
- 9.1.0
- 9.0.1
- 9.0.0
- 8.3.1
- 8.3.0
- 8.2.0
- 8.1.0
- 8.0.2
- 8.0.1
- 8.0.0
- 7.5.1
- 7.5.0
- 7.4.4
- 7.4.3
- 7.4.2
- 7.4.1
- 7.4.0
- 7.3.0
- 7.2.1
- 7.2.0
- 7.1.0
- 7.0.1
- 7.0.0
- 6.3.3
- 6.3.2
- 6.3.1
- 6.3.0
- 6.2.3
- 6.2.2
- 6.2.1
- 6.2.0
- 6.1.0
- 6.0.0
- 5.2.0
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.0
- 4.4.0
- 4.3.1
- 4.3.0
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.1
- 3.0.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.5.1
- 1.5.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.11.0
- 0.10.0
- 0.9.1
- 0.9.0
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.0
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.0
- 10.1.0-alpha.2
- 10.1.0-alpha.1
- 10.1.0-alpha.0
- 10.0.0-alpha.0
- 9.1.0-colors.0
- 8.4.0-alpha.0
- 8.0.0-alpha.1
- 8.0.0-alpha.0
- 7.2.0-beta.1
- 7.2.0-beta.0
- 5.0.0-1
- 5.0.0-0
- 2.0.0-alpha8
- 2.0.0-alpha7
- 2.0.0-alpha6
- 2.0.0-alpha5
- 2.0.0-alpha4
- 2.0.0-alpha3
- 2.0.0-alpha2
- 2.0.0-alpha1
<link href=" https://cdn.jsdelivr.net/npm/dmn-js@17.2.1/dist/assets/diagram-js.min.css " rel="stylesheet">
No default CSS file set by the package author so the URL is guessed. You can always browse all package files to use another one.
dmn-js - DMN for the web
View and edit DMN 1.3 diagrams in the browser.
Installation
Use the library pre-packaged or include it via npm into your node-style web-application.
Usage
To get started, create a dmn-js instance and render DMN 1.3 diagrams in the browser:
var xml; // my DMN 1.3 xml
var viewer = new DmnJS({
container: 'body'
});
viewer.importXML(xml, function(err) {
if (err) {
console.log('error rendering', err);
} else {
console.log('rendered');
}
});
Checkout our examples for 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 DmnJS();
// attach it to some element
viewer.attachTo('#container');
// detach the panel
viewer.detach();
Resources
Related
dmn-js builds on top of a few additional powerful tools:
- dmn-moddle: Read / write support for DMN 1.3 XML
- diagram-js: Diagram rendering and editing toolkit
- table-js: Table rendering and editing toolkit
License
Use under the terms of the bpmn.io license.