Skip to content

How do I register vue single file components with dockview so that I can register them as dockview panels? #757

Answered by memtech3
memtech3 asked this question in Q&A
Discussion options

You must be logged in to vote

Ah! Figured it out! Meta AI suggested this:
app.component('UnitsTable', UnitsTable) in main.ts

Here's the full main.ts file:

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createORM } from 'pinia-orm'

import { PiniaSharedState } from 'pinia-shared-state'

import App from './App.vue'
import router from './router'

import '@/main.scss'
import 'fundamental-styles/dist/theming/sap_horizon_dark.css'
import '@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon_dark/css_variables.css'
import 'dockview-vue/dist/styles/dockview.css'

import urql, { cacheExchange, fetchExchange } from '@urql/vue'

import DockView from './DockView.vue'
import UnitsTable f…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by memtech3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant