Initializes a new instance of the MenuItem class.
Namespace: MindFusion.Common.UI
File: MenuItem.js
JavaScript Copy Code |
---|
function MenuItem ([title, [href]]) |
String. The display text of this item.
String. The URL this item is pointing to.
The following example creates a Menu and adds a MenuItem to it:
JavaScript Copy Code |
---|
// Create a new Menu control. // Create a new MenuItem, displaying a link. // Draw and attach the menu control. |