igniteui-angular-sovn
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
32 lines (23 loc) • 750 B
Markdown
# IgxTextSelection
#### Category
_Directives_
## Description
Provides a way to trigger selection of text inside input elements.
## Usage
```html
<input type="text" [IgxTextSelection]="true" />
```
## API
### Inputs
| Name | Type | Description |
| :--- |:--- | :--- |
| IgxTextSelection| boolean | Determines whether the input element should be selectable through the directive.
### Accessors
| Name | Type | Description |
| :--- |:--- | :--- |
| selected | boolean | Returns whether the element is selected or not.
| nativeElement | ElementRef | Returns the nativeElement of the element where the directive was applied.
### Methods
| Name | Type | Description |
| :--- |:--- | :--- |
| trigger | void | Triggers the selection of the element.