new DuEditText()
Properties:
Name | Type | Description |
---|---|---|
text |
string | Read-Only | The text displayed |
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 |
Methods
-
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 -
static setText(text)
-
Changes the text
Parameters:
Name Type Description text
string The new text
Type Definitions
-
onActivate()
-
The function to execute when the box is activated.
-
onChange()
-
The function to execute when the text is changed.
-
onDeactivate()
-
The function to execute when the box is deactivated.