Initializes a new instance of the MenuItem class.
Namespace: MindFusion.Common.UI
File: MenuItem.js
SyntaxJavaScript
Copy Code
|
|---|
function MenuItem ([title, [href]]) |
String. The display text of this item.
String. The URL this item is pointing to.
ExampleThe 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. |
See Also