level

The level of this menu item. Root elements have a level of 1, their children have a level of 2, and so on. There can be several level 1 items in a menu. There are no level 0 menu items.

Type: int

Example usage
${myMenuItem.level}