limestone/ContextualMenuDecorator
A decorator for adding contextual menus to components.
Members
Section titled “Members ”ContextualMenuDecorator Higher-Order Component
Section titled “ContextualMenuDecorator   Higher-Order Component ”Wraps a component to display a contextual popup menu.
Includes:
ui/Toggleableui/Toggleable.Toggleable
Includes:
limestone/Skinnablelimestone/Skinnable.Skinnable
Includes:
limestone/ContextualPopupDecoratorlimestone/ContextualPopupDecorator.ContextualPopupDecorator
Configuration
noSkin
Section titled “noSkin”Disables passing the skin prop to the wrapped component.
openProp
Section titled “openProp”The prop in which to pass the value of open state of ContextualMenuDecorator to the
wrapped component.
Properties added to wrapped component
direction
Section titled “direction”Direction of popup with respect to the wrapped component.
Default: 'below right'The items to be displayed in the ContextualMenuDecorator when open.
Takes either an array of strings or an array of objects. When strings, the values will be
used in the generated components as the readable text. When objects, the properties will
be passed onto an Item component and children as well as a unique key property are
required.
Offset from the activator to apply to the position of the popup.
Default: 'overlap'onClose
Section titled “onClose”Called when the user has attempted to close the popup.
This may occur either when the close button is clicked or when spotlight focus
moves outside the boundary of the popup. Setting spotlightRestrict to 'self-only'
will prevent Spotlight focus from leaving the popup.
onOpen
Section titled “onOpen”Called when the popup is opened.
popupClassName
Section titled “popupClassName”CSS class name to pass to the limestone/ContextualPopupDecoratorlimestone/ContextualPopupDecorator.ContextualPopup.
This is commonly used to set width and height of the popup.
popupProps
Section titled “popupProps”An object containing properties to be passed to popup component.
Restricts or prioritizes spotlight navigation.
Allowed values are:
'none'- Spotlight can move freely within and beyond the popup'self-first'- Spotlight should prefer components within the popup over components beyond the popup, or'self-only'- Spotlight can only be set within the popup