NodeText: {
    contact: string | Record<string, string>;
    data: string;
    desc: string | Record<string, string>;
    name: string | Record<string, string>;
    title: string | Record<string, string>;
}

A text property can be given to each node. Here you can describe the content of a node in detail. For each text property a

tag will be created inside the node container. Corresponding HTML classes will be given to each created tag so they can be styled what ever way you like. If you pass an object instead off a string, an tag will be created instead of

tag.

node = {
parent: some_parent,
text: {
name: "Simple node",
title: "One of kind",
desc: "A basic example",
data-foo: " data Attribute for node",
contact: {
val: "contact me",
href: "http://twitter.com/",
target: "_self"
}
}
}

Type declaration

  • contact: string | Record<string, string>
  • data: string
  • desc: string | Record<string, string>
  • name: string | Record<string, string>
  • title: string | Record<string, string>

Generated using TypeDoc