Type Alias CCMenuItemDescription

CCMenuItemDescription: {
    action?: string;
    keyCombo?: CCKeyCombo;
    subitems?: CCMenuItemDescription[];
    title?: string;
}

Holds information about a menu item in a serializable way.

Type declaration

  • Optionalaction?: string

    A key for an action to send when the item is triggered (if null, the item will be disabled)

  • OptionalkeyCombo?: CCKeyCombo

    A key combo that will trigger the item

  • Optionalsubitems?: CCMenuItemDescription[]

    If this item has a submenu, the items to display

  • Optionaltitle?: string

    The text for the menu item (if null, denotes a separator)