Comments (3)
Thanks for the quick reply! I found that the inline template approach didn't work, but the separate component approach as you described worked well. Thanks!
from flowy-vue.
Hi @redijedi, I'll gladly look into it if you can provide a reproducing repo. At the moment I'm guessing however this error is not due to flowy vue.
from flowy-vue.
I've tried to get vuetify to work in the same way that quasar seems to, but continually get
Unknown custom element
errors and no rendering. Is there any recommended approach for using other UI frameworks?
I have no problems using flowy with Vuetify. Example of FlowBlock:
<template>
<div class="ma-0 pa-0">
<flowy-drag-handle>
<v-card
outlined
:color="node.color"
cols="auto"
width="140"
height="80"
class="d-flex flex-column align-center text-center pt-2"
>
<h3 class="caption" v-text="node.title" />
<v-card-actions>
<v-btn block style="width: 100%" color="grey-7" text>
<v-icon large>mdi-drag-horizontal</v-icon>
</v-btn>
</v-card-actions>
</v-card>
</flowy-drag-handle>
</div>
</template>
<script>
export default {
name: 'FlowBlock',
props: {
node: Object,
},
}
</script>
My block is globally imported:
import FlowBlock from '@/components/flow/FlowBlock'
Vue.component('FlowBlock', FlowBlock)
In your dataset, make sure each item contains the nodeComponent
property:
const nodes = [
{
id: "node-420,
name: "Noodle",
parentId: -1,
nodeComponent: "FlowBlock"
}
]
from flowy-vue.
Related Issues (20)
- Horizontal relations HOT 6
- Alternative node template syntax HOT 3
- Flow through answers to questions. HOT 1
- Zoom in / out and panning HOT 1
- Is the underlying tree data structure exposed? HOT 1
- Unknown custom element: <q-card> HOT 1
- Unknown custom element
- return false inside "beforeAdd" function does not change indicator to red HOT 9
- DragStop never triggered HOT 1
- drag item create new root / parent HOT 1
- Property appendTo : 'body' might not be working HOT 1
- How to use it ?
- NuxtJS Support
- Breaks usages of Vue-draggable on our app HOT 1
- Multiple "parentId"s per node HOT 2
- How to go from 1 to 3 to 1 nodes?
- Can't catch the target/destination node in beforeAdd HOT 1
- SVG horizontal connectors breaking on zooming out HOT 3
- Scale, zoom, transforms, drag, svg lines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowy-vue.