跳到主要内容

mind-elixir.nodeobj

Home > mind-elixir > NodeObj

NodeObj interface

MindElixir node object

Signature:

export interface NodeObj 

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)

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?

{ fontSize?: string; color?: string; background?: string; fontWeight?: string; }

(Optional)

tags?

string[]

(Optional)

topic

string