Skip to main content

Home > @jsplumbtoolkit/browser-ui-vue2 > BaseNodeComponent

BaseNodeComponent variable#

Provides a mixin you should use to create a component that renders a node.

Usage:

Vue.component('MyNode', { props:[ ... ], mixins:[ jsPlumbToolkitVue2.BaseNodeComponent], template:'...your node template.......', methods:{     ... }})

Signature:

BaseNodeComponent: {    methods: {        getNode: () => any;        getToolkit: () => any;        removeNode: () => void;        updateNode: (data: any) => void;    };}