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 |
Methods
# static setPlaceholder(placeholder)
Changes the placeholder
Parameters:
Name | Type | Description |
---|---|---|
placeholder |
string
|
The placeholder text |
# static setPrefix(prefix)
Changes the prefix
Parameters:
Name | Type | Description |
---|---|---|
prefix |
string
|
The new prefix |
# static setSuffix(suffix)
Changes the suffix
Parameters:
Name | Type | Description |
---|---|---|
suffix |
string
|
The new suffix |