Skip to content

How to add a costum Node component? #441

@Elektrokiste

Description

@Elektrokiste

Maybe its due to my inkompetenze, but i am not able to create a custom node component at all. I'd try to follow the Guide in the Doc, use the default component as a base, copied the content of the file Node.vue to a new file inside my projekt. then use the Example from the doc

<script setup> import { BaklavaEditor, Components } from "@baklavajs/renderer-vue"; const BaklavaNode = Components.Node; // example, replace with your component: import MyNodeRenderer from "./MyNodeRenderer.vue"; </script>

Tryed to fix the Imports of the vue-File, which doesn't really work, since the files on the Repo are normal vue files, but the npm installed version is only vue.d.ts which does not seem to fit together in any way

what do I do wrong? I dont get it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions