Returns the nativeElement of the element where the directive was applied.
<input
type="text"
id="firstName"
igxTextSelection>
</input>
@ViewChild('firstName',
{read: IgxTextSelectionDirective})
public inputElement: IgxTextSelectionDirective;
public getNativeElement() {
return this.inputElement.nativeElement;
}
Triggers the selection of the element if it is marked as selectable.
<input
type="text"
id="firstName"
igxTextSelection>
</input>
@ViewChild('firstName',
{read: IgxTextSelectionDirective})
public inputElement: IgxTextSelectionDirective;
public triggerElementSelection() {
this.inputElement.trigger();
}
Determines whether the input element could be selected through the directive.