Skip to content

Display BPMN 2.0 diagrams in Vue.js

License

Notifications You must be signed in to change notification settings

nithinssabu/vue-bpmn

 
 

Repository files navigation

vue-bpmn

Use bpmn-js to display BPMN 2.0 diagrams in a Vue.js application.

Usage

<template>
  <vue-bpmn
    url="/public/diagram.bpmn"
    v-on:error="handleError"
    v-on:shown="handleShown"
    v-on:loading="handleLoading"
  ></vue-bpmn>
</template>

<script>
  import VueBpmn from 'vue-bpmn';

  export default {
    components: {
      VueBpmn
    },
    methods: {
      handleError: function(err) {
        console.error('failed to show diagram', err);
      },
      handleShown: function() {
        console.log('diagram shown');
      },
      handleLoading: function() {
        console.log('diagram loading');
      }
    }
  };
</script>

Note that the diagram will be loaded via ajax from the given url and thus must be served by your app.

Resources

License

MIT

About

Display BPMN 2.0 diagrams in Vue.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 62.3%
  • Vue 29.0%
  • JavaScript 8.7%