SP.UI.PopoutMenu(launcherId, menuId, iconId, launcherOpenCssClass, textDirection, closeIconUrl, isClustered, closeIconOffsetLeft, closeIconOffsetTop, closeIconHeight, closeIconWidth) Constructor
Applies to: SharePoint Foundation 2010
Initializes a new instance of the PopoutMenu class based on the relative information of pop-out menu.
var value = new PopoutMenu(launcherId, menuId, iconId, launcherOpenCssClass, textDirection, closeIconUrl, isClustered, closeIconOffsetLeft, closeIconOffsetTop, closeIconHeight, closeIconWidth);
Parameters
launcherId
Type: string
The anchor element identifier (ID) of the pop-out menu.
menuId
Type: string
The menu element ID of the pop-out menu.
iconId
Type: string
The icon element ID of the pop-out menu.
launcherOpenCssClass
Type: string
The cascading style sheets (CSS) class to assign to the anchor element when the menu is open.
textDirection
Type: string
The text direction of the pop-out menu. The only value recognized is "ltr" (left-to-right).
closeIconUrl
Type: string
The URL of the close icon for the pop-out menu.
isClustered
Type: Boolean
true to get the icon from clustered elements; otherwise, false.
closeIconOffsetLeft
Type: int
The offset, in pixels, of the left side of the close icon in relation to the left side of the pop-out menu.
closeIconOffsetTop
Type: int
The offset, in pixels, of the top of the close icon in relation to the top of the pop-out menu.
closeIconHeight
Type: int
The height, in pixels, of the close icon for the pop-out menu.
closeIconWidth
Type: int
The width, in pixels, of the close icon for the pop-out menu.
Exceptions
The value of the launcherId parameter does not match that of an existing anchor element ID.
-or-
The value of the menuId parameter does not match that of an existing menu element ID.