Class type Goog.​Ui.​popupBase

class type popupBase = object..end

Inherits


method getType : Js.js_string Js.t Js.meth
method setType : Js.js_string Js.t -> unit Js.meth

Specifies the type of popup to use.

method shouldHideAsync : bool Js.t Js.meth

Returns whether the popup should hide itself asynchronously using a timeout instead of synchronously.

method setShouldHideAsync : bool Js.t -> unit Js.meth

Sets whether the popup should hide itself asynchronously using a timeout instead of synchronously.

method getElement : Dom_html.element Js.t Js.meth

Returns the dom element that should be used for the popup.

method setElement : 'a. (#Dom_html.element as 'a) Js.t -> unit Js.meth

Specifies the dom element that should be used for the popup.

method getAutoHide : bool Js.t Js.meth

Returns whether the Popup dismisses itself when the user clicks outside of it.

method setAutoHide : bool Js.t -> unit Js.meth

Sets whether the Popup dismisses itself when the user clicks outside of it.

method getHideOnEscape : bool Js.t Js.meth

Returns whether the Popup autohides on the escape key.

method setHideOnEscape : bool Js.t -> unit Js.meth

Sets whether the Popup dismisses itself on the escape key.

method getEnableCrossIframeDismissal : bool Js.t Js.meth

Returns whether cross iframe dismissal is enabled.

method setEnableCrossIframeDismissal : bool Js.t -> unit Js.meth

Sets whether clicks in other iframes should dismiss this popup. In some cases it should be disabled, because it can cause spurious

method getAutoHideRegion : bool Js.t Js.meth

Returns the region inside which the Popup dismisses itself when the user clicks, or null if it's the entire document.

method setAutoHideRegion : bool Js.t -> unit Js.meth

Sets the region inside which the Popup dismisses itself when the user clicks.

method getLastShowTime : float Js.t Js.meth

Returns the time when the popup was last shown. Time in ms since epoch or -1 if the popup was never shown.

method getLastHideTime : float Js.meth

Returns the time when the popup was last hidden. Time in ms since epoch or -1 if the popup was never hidden or is currently showing.

method isVisible : bool Js.t Js.meth

Returns whether the popup is currently visible.

method isOrWasRecentlyVisible : bool Js.t Js.meth

Returns whether the popup is currently visible or was visible within about 150 ms ago. This is used by clients to handle a very specific, but common, popup scenario. The button that launches the popup should close the popup on mouse down if the popup is already open. The problem is that the popup closes itself during the capture phase of the mouse down and thus the button thinks it's hidden and this should show it again. This method provides a good heuristic for clients. Typically in their event handler they will have code that is: if (menu.isOrWasRecentlyVisible()) then menu.setVisible(false) meth else ... (* code to position menu and initialize other state *) menu.setVisible(true) meth

method setVisible : bool Js.t -> unit Js.meth

Sets whether the popup should be visible.

method showPopupElement : unit Js.meth

Shows the popup element.

method onBeforeShow : bool Js.t Js.meth

Called before the popup is shown. Derived classes can override to hook this event but should make sure to call the parent class method.