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
Param | Type | Description |
---|---|---|
$popUp | jQuery | jQuery object for the DOM element pop-up |
removeHandler | function | Pop-up specific remove (e.g. display:none or DOM removal) |
autoRemove | Boolean | Specify 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. |
options | object | |
options.popupManagesFocus | boolean | set 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
Param | Type |
---|---|
$popUp | jQuery |
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
Param | Type |
---|---|
contextMenu | ContextMenu |