type | (string) the type of a control, set it to "menuItem" |
id | (string, number) the id of a control, auto-generated if not set |
parent | (string) the parent of the item |
value | (string) a value for the menu item. You need to set either the value or html property to the item |
html | (string) optional, a string with HTML that should be inserted into the menu item |
css | (string|string[]) adds style classes |
icon | (string) the name of an icon from the used icon font |
items | (array) an array of children controls (note that all the children should have the type menuItem) |
hotkey | (string) the name of a keyboard shortcut for a menu item |
count | (number|string) a badge with a number |
countColor | (string) the color of a badge with number: "danger" | "secondary" | "primary" | "success" |
hidden | (boolean) defines whether a control is hidden |
disabled | (boolean) defines whether an item is disabled |