跳到主要内容

mind-elixir.nodeobj

Home > mind-elixir > NodeObj

NodeObj interface

MindElixir node object

Signature:

export interface NodeObj<M = unknown> 

Properties

Property

Modifiers

Type

Description

branchColor?

string

(Optional) The color of the branch.

children?

NodeObj[]

(Optional)

dangerouslySetInnerHTML?

string

(Optional) Render custom HTML in the node.

Everything in the node will be replaced by this property.

direction?

Left | Right

(Optional)

expanded?

boolean

(Optional)

hyperLink?

string

(Optional)

icons?

string[]

(Optional)

id

Uid

image?

{ url: string; width: number; height: number; fit?: 'fill' | 'contain' | 'cover'; }

(Optional)

metadata?

M

(Optional) Generic metadata for the node, can be used to store any custom data.

note?

string

(Optional) Extra data for the node, which can be used to store any custom data.

parent?

NodeObj

(Optional) This property is added programatically, do not set it manually.

the Root node has no parent!

style?

Partial<{ fontSize: string; fontFamily: string; color: string; background: string; fontWeight: string; width: string; border: string; textDecoration: string; }>

(Optional)

tags?

(string | TagObj)[]

(Optional)

topic

string