Skip to content

igxTextSelectionDirective Specification

Aleksandar Kamenov edited this page Apr 10, 2018 · 1 revision

Overview

IgxTextSelection provides a way to trigger selection of text inside input elements.

<input type="text" [IgxTextSelection]="true" />

User Stories

Developer

As a developer I want to be able to force text range selection to any focused input element with text content.

End User

As an end user I would like to be able to make text selection of given input element with text content when it is focused.

Integration scenarios

To trigger auto selection of igxGrid cell text value when we are in an edit mode.

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.
Clone this wiki locally