CreateMenuItem

From GT-MP
Jump to: navigation, search
CreateMenuItem
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

This method creates a new menu item in a client-side menu.


To create menus, see createMenu.

For an example on how to create a menu item, and trigger an event when clicking a menu item, see UIMenuItem.

Syntax

API.createMenuItem(string label, string description);

Required Arguments

  • label: parameter input should be in string type.
  • description: parameter input should be in string type.

NOTE: This function returns data in UIMenuItem type.

Usage example(s)

API.createMenuItem(string label, string description);

References