MenuStyle : setMenuIndent

For tree menus only. Set the horizontal space between one menu and the next sub-level menu.

Demo

file: setMenuIndent.html

Run the example
See the source code

Syntax

MenuStyle.setMenuIndent(number)

Parameters

number

The number of pixels between one menu and its sub-level menu.

Comment

Sub-menus of tree Menus are, if menuIndent is set to 0, left alogned with items of their parent's Menus. Thus the menuIndent value indicates the left margin between items of the parent Menu and the sub-menu.