Skip to content

Assistance Needed with VueUiDashboard and Vue Composition API Integration #34

Answered by graphieros
necatibektass asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use scoped slots to display the components on the dashboard.
The documentation currently lacks a concrete example.

Here is a corrected version of your code:

<template>
    <VueUiDashboard :dataset="dataset" :config="config" @change="changeDashboard($event)">
        <template #content="{ item }">
            <component :is="item.component" v-bind="item.props"/>
        </template>
    </VueUiDashboard>
</template>


<script setup>
import { ref, onMounted, watch, computed } from 'vue'
import { VueUiDashboard } from 'vue-data-ui';
import { VueUiDonut } from 'vue-data-ui';



const config = ref(
    {
    style: {
        board: {
            backgroundColor: "#FFFFFF",
            

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
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 necatibektass
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants