Class IgxTextSelectionDirective

Constructors

Properties

Accessors

Methods

Constructors

Properties

selected: boolean = true

Determines whether the input element could be selected through the directive.

<!--set-->
<input
type="text"
id="firstName"
[igxTextSelection]="true">
</input>

<input
type="text"
id="lastName"
igxTextSelection
[selected]="true">
</input>

Accessors

  • get nativeElement(): any
  • 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;
    }

    Returns any

Methods