Skip to content

How to make the component work Controls #603

Answered by bcakmakoglu
EvgenyGulyaev asked this question in Q&A
Discussion options

You must be logged in to vote

Did you import the styles necessary for the components?

@import '@vue-flow/controls/dist/style.css';
@import '@vue-flow/minimap/dist/style.css';

Are you getting any errors for the Controls?

This example works completely fine for me.

<script lang="ts">
import type { Elements, FlowEvents, VueFlowStore } from '@vue-flow/core'
import { VueFlow, isNode } from '@vue-flow/core'

import { Background } from '@vue-flow/background'
import { Controls } from '@vue-flow/controls'
import { MiniMap } from '@vue-flow/minimap'

export default defineComponent({
  name: 'BasicOptionsAPI',
  components: { VueFlow, Background, MiniMap, Controls },
  data() {
    return {
      instance: null as VueFlowStore | n…

Replies: 6 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@EvgenyGulyaev
Comment options

Answer selected by EvgenyGulyaev
Comment options

You must be logged in to vote
1 reply
@bcakmakoglu
Comment options

Comment options

You must be logged in to vote
1 reply
@bcakmakoglu
Comment options

Comment options

You must be logged in to vote
4 replies
@bcakmakoglu
Comment options

@EvgenyGulyaev
Comment options

@EvgenyGulyaev
Comment options

@bcakmakoglu
Comment options

Comment options

You must be logged in to vote
1 reply
@bcakmakoglu
Comment options

Comment options

You must be logged in to vote
1 reply
@bcakmakoglu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants