MenuElement

constructor(name: String, isRoot: Boolean)

Create a new MenuElement; may either be the root menu, or a submenu (set isRoot accordingly)

Parameters

name

the name for this menu

isRoot

whether this is a root menu, or a submenu