For use with DuScriptUI.
A picker for layers with labels.
This is not a real class, and cannot be instanciated.
Use DuScriptUI.layerPickerDialog to create a picker.
The picker inherits the Group object from ScriptUI and has all of its properties and methods.

# new DuAELayerPickerDialog()

Name Type Description
layerPicker DuAELayerPicker The layer picker inside the dialog.
accepted bool This property is true if the user has clicked the OK button, false otherwise.

View Source Duik_api_fordoc.jsxinc, line 19760


# static addSelector() → {DuAELayerSelector}

Adds a new line on the DuAELayerPicker This is a convenience function equivalent to DuAELayerPickerDialog.layerPicker.addSelector.

View Source Duik_api_fordoc.jsxinc, line 19781

The added DuAELayerSelector

# static getLayers() → {Array.<Layer>}

Gets the layers picked by the user.

View Source Duik_api_fordoc.jsxinc, line 19790

The layers picked (null if the user has set none in the selector), in the display order.

# static removeAll()

Empties the DuAELayerPicker
This is a convenience function equivalent to DuAELayerPickerDialog.layerPicker.removeAll.

View Source Duik_api_fordoc.jsxinc, line 19773

Type Definitions

# onAccept()

The function called when the dialog is accepted.

View Source Duik_api_fordoc.jsxinc, line 19798