selection([start], [end])
Class: ComboBox. Method inherited from TextComponent.
Description:
Gets selection object or sets selection by providing start and end positions.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number |
Start position of selection. |
|
|
number |
End position of selection. Required if |
Returns:
Returns this component if arguments are provided, otherwise returns Object of format {start: number, end: number, text: string};
Type: Object | this
