MenuItem
classin packageklyn.gui.windows
public class MenuItem:
MenuItem

Single menu entry.

Subclasses may override click to implement actions while keeping the menu infrastructure generic.

item = MenuItem("Open...")
Properties
Modifier and Type Member Description
public property text
text as String = ""
Display text shown in the menu popup.
Constructors
Modifier and Type Member Description
public MenuItem
MenuItem(text as String = ""):
Creates a menu item.
Methods
Modifier and Type Member Description
public click
click() as Void:
Executes the menu action.