Skip to main content

PopUpManager

Import :

const PopUpManager = brackets.getModule("widgets/PopUpManager")

AppInit

Utilities for managing pop-ups.

Kind: global variable

addPopUp($popUp, removeHandler, autoRemove, options)

Add Esc key handling for a popup DOM element.

Kind: global function

ParamTypeDescription
$popUpjQueryjQuery object for the DOM element pop-up
removeHandlerfunctionPop-up specific remove (e.g. display:none or DOM removal)
autoRemoveBooleanSpecify true to indicate the PopUpManager should remove the popup from the _popUps array when the popup is closed. Specify false when the popup is always persistant in the _popUps array.
optionsobject
options.popupManagesFocusbooleanset to true if the popup manages focus restore on close

removePopUp($popUp)

Remove Esc key handling for a pop-up. Removes the pop-up from the DOM if the pop-up is currently visible and was not originally attached.

Kind: global function

ParamType
$popUpjQuery

listenToContextMenu(contextMenu)

Context menus are also created in AppInit.htmlReady(), so they may not yet have been created when we get our AppInit.htmlReady() callback, so we provide this method to tell us when to start listening for their events

Kind: global function

ParamType
contextMenuContextMenu