共用方式為


SP.UI.PopoutMenu Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.UI.PopoutMenu class.

Methods

Name

Description

beginModal

Starts the modal menu for the events.

closeActivePopoutMenuInstance

Closes the active pop-out menu instance.

closeMenu

Closes the pop-out menu.

createPopoutMenuInstanceAndLaunch

Creates a pop-out menu instance and then starts it.

dispose

Releases all resources of the pop-out menu.

endModal

Ends the modal menu for the events.

ensureCSSClassOnElement

Appends the specified cascading style sheets (CSS) class to the specified element.

getViewableLeft

Gets the number of pixels that the page has been scrolled from the left side of the window.

getViewableTop

Gets the number of pixels that the page has been scrolled from the top of the window.

getViewPortHeight

Gets the height, in pixels, of the viewable area for the menu.

getViewPortWidth

Gets the width, in pixels, of the viewable area for the menu.

launchMenu

Displays the pop-out menu.

PopoutMenu

Initializes a new instance of the PopoutMenu class based on the relative information of the pop-out menu.

positionBackFrame

Positions the back frame of the pop-out menu relative to the specified element.

positionMenu

Positions the pop-out menu.

positionMenuWithCoordinates

Positions the top-left corner of the pop-out menu with the specified coordinates.

removeCSSClassFromElement

Removes the specified cascading style sheets (CSS) class from the specified element.

Applies To

SP.UI.PopoutMenu Class

See Also

Reference

SP.UI.PopoutMenu Events

SP.UI.PopoutMenu Properties

SP.UI Namespace