Phone API Reference - UI Classes (Widgets) - Input - replace
replace
Description
Replaces a range of text from the input widget with another string.
...
Note, this will focus the cursor at the end of the replacement.
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
begin | Yes | integer | Index to begin replacing. | |
end | Yes | integer | Index to end replacing. | |
replacement | Yes | string | The string to use as the replacement. |
Examples
replace bar with foo
|