Press "Enter" to skip to content

Growing FlowChart Component for Vuejs | vue-flowy

vue-flowy is a smart flowchart builder based on the Vue.js application to visualize workflow, task process, and more.

vue simple flowchart, vue flowchart editor, vue diagram library, how to make flow chart, simple flowchart, process flow chart, flow chart example

How to make use of it:

Installation:

$ npm install vue-flowy --save
yarn
$ yarn add vue-flowy

1. Register as Component.

import { VueFlowy } from "vue-flowy";

export default {
  name: "App",

  components: {
    VueFlowy,
  },
};

2. Register as a plugin.

import Vue from "vue";
import { VueFlowy } from "vue-flowy";

Vue.component(VueFlowy);

3. Usage

<template>
  <VueFlowy :chart="chart"></VueFlowy>
</template>
<script>
import { VueFlowy, FlowChart } from "vue-flowy";

export default {
  name: "App",

  components: {
    VueFlowy,
  },

  data: () => ({
    chart: new FlowChart(),
  }),
  mounted() {
    const idea = this.chart.addElement("idea");
    const A = this.chart.addElement("A", { label: "vscode" });
    const B = this.chart.addElement("B", { label: "github" });
    const C = this.chart.addElement("C", { label: "npm" });
    idea.leadsTo(A).leadsTo(B);
    A.leadsTo(C);

    A.on("click", function () {
      console.log("click!");
    });
  },
};
</script>

easy flowchart component, vue-flowy Plugin/Github


See Demo And Download

Official Website(p-kuen): Click Here

This superior jQuery/javascript plugin is developed by p-kuen. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.