## DuAELayerPickerDialog()

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.
Constructor

#### # new DuAELayerPickerDialog()

##### Properties:

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 DuAEF_Duik_api.jsxinc, line 16641

# Methods

#### # static addSelector() → {DuAELayerSelector}

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

View Source DuAEF_Duik_api.jsxinc, line 16662

Returns:
The added DuAELayerSelector
Type: `DuAELayerSelector`

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

Gets the layers picked by the user.

View Source DuAEF_Duik_api.jsxinc, line 16671

Returns:
The layers picked (null if the user has set none in the selector), in the display order.
Type: `Array.<Layer>`

#### # static removeAll()

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

View Source DuAEF_Duik_api.jsxinc, line 16654

# Type Definitions

#### # onAccept()

The function called when the dialog is accepted.

View Source DuAEF_Duik_api.jsxinc, line 16679