view.node_overflow Option
Option Name | Data Type | Default Value | Description |
---|---|---|---|
view.node_overflow | string | ‘hidden’ | Style when node text is too long (Since 0.5.3) |
Option Description
The node_overflow
option is used to set the display style when the node text is too long. This option supports the following two styles:
hidden
- Hide part of them to maintain the overall readability of the mind map [default]wrap
- Wrap the text to display the entire content
Usage Example
Below is an example of setting the node_overflow
option:
var options = {
container: 'jsmind_container',
editable: true,
theme: 'primary',
mode: 'full',
support_html: true,
view: {
node_overflow: 'wrap', // Set the node text to wrap when it is too long
hmargin: 100,
vmargin: 50
}
};
In the example above, the node_overflow
option is set to wrap
. This setting will cause the node text to automatically wrap when it is too long.
hidden (default) | wrap |
---|---|
Related Options and Settings
custom_node_render
The custom_node_render
option allows users to customize the rendering method of the mind map nodes. With this option, users can have full control over the rendering process of the nodes.
For more information, please refer to the custom_node_render option.
Themes
It should be noted that the jmnode
style in custom themes may affect the effectiveness of the node_overflow option
.
For more information, please refer to the theme Option。
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.