## DuEditText()

For use with `DuScriptUI`.
A Nice EditText.
This is not a real class, and cannot be instanciated.
Use `DuScriptUI.editText` to create a Nice EditText.
The Nice EditText inherits the Group object from ScriptUI and has all of its properties and methods.
Constructor

#### # new DuEditText()

##### Properties:

Name | Type | Description
--- | --- | ---
`text` | `string` | Read-Only | The text displayed
`textColor` | `DuColor` | The color of the text
`onActivate` | `DuEditText~onActivate` | Function to execute when activated
`onDeactivate` | `DuEditText~onDeactivate` | Function to execute when deactivated
`onChange` | `DuEditText~onChange` | Function to execute when text changed
`onEnterPressed` | `DuEditText~onChange` | Function to execute when enter key is pressed whil in edit mode

View Source DuAEF_Duik_api.jsxinc, line 12075

# Methods

#### # static setPlaceholder(placeholder)

Changes the placeholder

##### Parameters:

Name | Type | Description
--- | --- | ---
`placeholder` | `string` | The placeholder text

View Source DuAEF_Duik_api.jsxinc, line 12141

#### # static setPrefix(prefix)

Changes the prefix

##### Parameters:

Name | Type | Description
--- | --- | ---
`prefix` | `string` | The new prefix

View Source DuAEF_Duik_api.jsxinc, line 12125

#### # static setSuffix(suffix)

Changes the suffix

##### Parameters:

Name | Type | Description
--- | --- | ---
`suffix` | `string` | The new suffix

View Source DuAEF_Duik_api.jsxinc, line 12133

#### # static setText(text)

Changes the text

##### Parameters:

Name | Type | Description
--- | --- | ---
`text` | `string` | The new text

View Source DuAEF_Duik_api.jsxinc, line 12117

# Type Definitions

#### # onActivate()

The function to execute when the box is activated.

View Source DuAEF_Duik_api.jsxinc, line 12105

#### # onChange()

The function to execute when the text is changed.

View Source DuAEF_Duik_api.jsxinc, line 12092

#### # onDeactivate()

The function to execute when the box is deactivated.

View Source DuAEF_Duik_api.jsxinc, line 12111

#### # onEnterPressed()

Function to execute when enter key is pressed whil in edit mode.

View Source DuAEF_Duik_api.jsxinc, line 12098