This function converts the menu item collection to a JSON string.
This function is used as a helper for hwc.addMenuItemCollection.
stringify() → {string}
The JSON string representing this menu item collection.
[/reference/refbody/section/sectiondiv {""})Type:
string
(sectiondiv]var callbackFunctionName = function() { alert( "Menu item clicked!" ); } var menuItemCollection = new hwc.MenuItemCollection(); var jsonMenuItemCollection = menuItemCollection.stringify();