jsMind

Custom Styles

When creating mind maps with jsMind, in addition to using built-in themes, you can also set individual styles for each node.

Supported Custom Styles

Currently, jsMind supports the following custom styles:

Setting Methods

Configuring via API

Add the above configurations in the data parameter.

let data = {
    'width': 400,
    'leading-line-color': '#33ff33'
};
jm.add_node(parent_node, 'new_node_id', 'New Node', data);

Configuring in Data Definition (Data File)

Add the above parameters to the node definition, for example:

var mind = {
    format: 'node_tree',
    data: {
        id: 'root',
        topic: 'jsMind',
        children: [
            {
                'id': 'image-node',
                'background-image': 'http://fakeurl.com/fake-picture.png',
                'width': '100',
                'height': '100',
            }
        ]
    }
};

copyright notice

Reproduction and deduction are prohibited.

The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document.