Class: SC.MenuItemView


Extends SC.View.

An SC.MenuItemView is created for every item in a menu.

Defined in: menu_item.js

Since:
SproutCore 1.0

Field Summary

Instance Methods

Field Detail

acceptsFirstResponder Boolean
Default value:
YES
ariaRole String
The WAI-ARIA role for menu items.
Default value:
'menuitem'
blocksIEDeactivate Boolean
IE only attribute to block blurring of other controls
Default value:
YES
classNames Array
Default value:
['sc-menu-item']
See:
SC.View#classNames
content Object
The content object the menu view will display.
Default value:
null
displayProperties Array
Default value:
['title', 'isEnabled', 'isSeparator', 'isChecked']
See:
SC.View#displayProperties
escapeHTML Boolean
Default value:
YES
isContextMenuEnabled Boolean
Default value:
NO
isReusable
SC.MenuItemView is not able to update itself in place at this time.

Instance Method Detail

closeParent()

Close the parent Menu and remove the focus of the current Selected Menu Item

hasSubMenu()
icon()
The icon from the content property.
isChecked()
YES if the menu item should include a check next to it.
isEnabled()
Whether the item is enabled or not.
isSeparator()
YES if this menu item represents a separator, NO otherwise.
shortcut()
The shortcut from the content property.
showSubMenu()

This method will check whether the current Menu Item is still selected and then create a submenu accordingly.

subMenu()
This menu item's submenu, if it exists.
title()
The title from the content property.
toolTip()
The tooltip from the content property.
value()
The value from the content property.
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:20 GMT-0600 (CST)