Class: SC.MenuItemView
Extends
SC.View.
Defined in: menu_item.js
- Since:
- SproutCore 1.0
Field Summary
- acceptsFirstResponder
- ariaRole
- blocksIEDeactivate
- classNames
- content
- displayProperties
- escapeHTML
- isContextMenuEnabled
- isReusable
- Fields borrowed from SC.View:
- acceptsMultitouch, ariaHidden, attributeBindings, autoMixins, backgroundColor, childViewLayout, childViewLayoutOptions, childViews, childViewsNeedLayout, classNameBindings, concatenatedProperties, createdByParent, designMode, enabledState, firstKeyView, hasLayout, hasTouch, hasVisibility, isBuildingIn, isBuildingOut, isChildViewLayoutLive, isFixedHeight, isFixedPosition, isFixedSize, isFixedWidth, isKeyResponder, isTextSelectable, isView, isVisible, lastKeyView, layerLocationNeedsUpdate, layerNeedsUpdate, layout, modeAdjust, nextKeyView, page, pane, parentView, previousKeyView, renderDelegateName, shouldInheritCursor, shouldInheritEnabled, tagName, themeName, touchBoundary, transitionAdjust, transitionAdjustOptions, transitionHide, transitionHideOptions, transitionIn, transitionInOptions, transitionOut, transitionOutOptions, transitionShow, transitionShowOptions, useStaticLayout
- Fields borrowed from SC.Responder:
- hasFirstResponder, isFirstResponder, responderContext
- Fields borrowed from SC.Object:
- isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
Instance Methods
- closeParent()
- hasSubMenu()
- icon()
- isChecked()
- isEnabled()
- isSeparator()
- shortcut()
- showSubMenu()
- subMenu()
- title()
- toolTip()
- value()
Field Detail
acceptsFirstResponder Boolean- Default value:
- YES
The WAI-ARIA role for menu items.
- Default value:
- 'menuitem'
IE only attribute to block blurring of other controls
- Default value:
- YES
- Default value:
- ['sc-menu-item']
- See:
- SC.View#classNames
The content object the menu view will display.
- Default value:
- null
- Default value:
- ['title', 'isEnabled', 'isSeparator', 'isChecked']
- See:
- SC.View#displayProperties
- Default value:
- YES
- Default value:
- NO
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)