dundas.controls.MenuItem Class

 

Inheritance Hierarchy

 
Class
   dundas.controls.BasicMenuItem
      dundas.controls.MenuItem
 

Constructors

 
  Name Description
init Initializes the control. Called during construction. Inherited from dundas.controls.BasicMenuItem.
 
 

Properties

 
  Name Description
control Gets the control element.
iconSize Gets or sets a value indicating an override size (width/height as they are square) for the item and indicator icon. Inherited from dundas.controls.BasicMenuItem.
id Gets or sets the menu item ID.
isActive Gets or sets whether this menu item is in the 'active' state or not.
isIndicatorIconAlwaysShown Gets or sets whether the indicator icon is always shown or not. By default, it only shows when this menu item has children. Inherited from dundas.controls.BasicMenuItem.
items Gets or sets the children items under this item, if any.
padding Gets or sets the padding of the control. Inherited from dundas.controls.BasicMenuItem.
parentItem Gets the parent of this item, if this item is a child.
parentMenu Gets the parent menu control of this item, if it's in a menu control.
stateStyles Gets or sets the styles for each of the possible states of the item. Inherited from dundas.controls.BasicMenuItem.
targetObjectId Gets or sets the ID of the object to navigate to, if any.
targetObjectType Gets or sets the type of the object to navigate to, if any.
text Gets or sets the menu item text.
tooltipText Gets or sets the menu item tooltip text.
 
 

Methods

 
  Name Description
applyStyle Applies the given menu item style to this menu control, but does not set it to the properties on this control directly.
dispose Disposes the item.

Static
FromFileSystemEntry Static method to convert from a file system entry to a menu item.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
getCaptionCellElement Gets the caption cell element.
refresh Refreshes the control so that the DOM element is re-created. This is used if it has been modified.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
toString Returns a string representation of this object.