Skip to Main Content

Namespace: widget



The apex.widget namespace stores all the general purpose widget related functions of Oracle APEX.


(static) initPageItem()

This function is a wrapper around apex.item.create. It is for backward compatibility. See apex.item.create for details.
  • Yes

(static) waitPopup(pContentopt) → {Object}

Shows a wait popup. A wait popup consists of an overlay div that keeps the user from clicking on any part of the page along with a visual "spinner" animation of some kind. It does not keep the user from interacting with the page using the keyboard.

This is intended to be used just prior to submitting the page such that the page (and hence this popup) will soon be replaced with a new page. If you do need to close the popup, use the "remove" function of the returned object. See apex.util.showSpinner and apex.util.delayLinger for a low level solution more suitable for ajax requests or other long running processes.

This function is rarely needed because it is automatically called in based on the showWait option. Also typically ajax operations don't require an overlay to disable clicking.

Name Type Attributes Description
pContent String <optional>
HTML code for a wait indicator. If it is not provided, the default CSS animation wait indicator will be displayed.
Object with a no argument function "remove" that closes the popup.

The following example shows a wait spinner and disables clicking on the page while some long running ajax action takes place and then removes the spinner when it is done.

var popup = apex.widget.waitPopup();
var promise = apex.server.process(...);
promise.always(function() {