Class: DuSelector

DuSelector

For use with DuScriptUI.
A drop down selector.
This is not a real class, and cannot be instanciated.
Use DuScriptUI.selector to create a Selector.
The Selector inherits the Group object from ScriptUI and has all of its properties and methods.

new DuSelector()

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 11281
Properties:
Name Type Description
image string The path to the current image (or a PNG as a string representation)
icon Image The Image currently displayed
label StaticText The current text
items Array.<Array.<string>> The buttons, each one is an array with [text, image, helptip]
index int The current index
text string The current text
onChange Selector~onChange The function to execute when the index changes.
You can set your own function here, which must take no argument.
The method is called after the index has changed.
onRefresh Selector~onRefresh The function to execute to refresh the content.
You can set your own function here, which must take no argument.

Methods

staticDuSelector.addButton(text, image, helpTip, imageOver, localize)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 11315
Adds a new button to the selector
Name Type Default Description
text string optional The text displayed by the button
image string optional The icon, either a path to the file or a PNG represented as a string.
helpTip string optional The help tip for the entry
imageOver string optional The roll over icon, either a path to the file or a PNG represented as a string.
localize boolean true optional Set to false if the text must not be translated.

staticDuSelector.clear()

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 11334
Removes all buttons from the selector. This is the same as Selector.removeAll.

staticDuSelector.removeAll()

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 11327
Removes all buttons from the selector. This is the same as Selector.clear.

staticDuSelector.setCurrentIndex(index)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 11341
Changes the selection and the current index of the selector
Name Type Description
index int The new index

staticDuSelector.setCurrentText(text, quiet)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 11349
Changes the selection and the current index of the selector, using the text of the selection
Name Type Default Description
text string The text to select
quiet Boolean false optional When true, the onChange() callback will not be triggered.