Class

DuPopup

DuPopup()

For use with DuScriptUI.
A borderless popup, to be tied to a ui control.
This is not a real class, and cannot be instanciated.
Use DuScriptUI.popUp to create a Popup.
The DuPopup inherits the Window object from ScriptUI and has all of its properties and methods.
Constructor

# new DuPopup()

Properties:
Name Type Description
content Group The ScriptUI group where the new controls must be added. Do not add any control directly inside the DuPopup.
pinned boolean true if this popup is "pinned", which means it won't hide when the user clicks outside of the window.
build DuPopup~build You can use this callback to add a function which builds the UI of the popup, it will be called on first display.

View Source DuAEF.jsxinc, line 9633

Members

Boolean

# static block

Sets this parameter to true to prevent the next show of the popup.
This will prevent it from showing once (and only once).
Default Value:
  • false

View Source DuAEF.jsxinc, line 9688

Methods

# cancel()

Hides the popup (alias for DuPopup.hidePopup).

View Source DuAEF.jsxinc, line 9680

# static hidePopup()

Hides the popup.

View Source DuAEF.jsxinc, line 9673

# static pin(pinnedopt)

Pins the popup (it won't be hidden anymore when deactivated).
Parameters:
Name Type Attributes Default Description
pinned boolean <optional>
true true to pin the popup, false to un-pin it.

View Source DuAEF.jsxinc, line 9665

# static tieTo(controlopt, onShiftopt, alwaysBlockopt)

Ties the popup to a ui control. The popup will be shown just above the control when it is clicked.
The control must have an addEventListener method.
Parameters:
Name Type Attributes Default Description
control ScriptUI <optional>
The control
onShift Boolean <optional>
false If set to true, the popup is tied on Shift + Click only
alwaysBlock boolean <optional>
false If true, the popup will never be automatically shown. Call show() to show it.

View Source DuAEF.jsxinc, line 9654

Type Definitions

# build()

You can use this callback to add a function which builds the UI of the popup, it will be called on first display.
This allows a faster startup of your script by delaying the creation of the tabs which are hidden at startup.
You can add controls in the this.content object.

View Source DuAEF.jsxinc, line 9647