Class IgxInputDirective

The igxInput directive creates single- or multiline text elements, covering common scenarios when dealing with form inputs.

Igx Module

IgxInputGroupModule

Igx Parent

Data Entry & Display

Igx Theme

igx-input-group-theme

Igx Keywords

input, input group, form, field, validation

Igx Group

presentation

Example

<input-group>
<label for="address">Address</label>
<input igxInput name="address" type="text" [(ngModel)]="customer.address">
</input-group>

Implements

  • AfterViewInit
  • OnDestroy

Constructors

Properties

inputGroup: IgxInputGroupBase
isInput: boolean = false

Sets/gets whether the "igx-input-group__input" class is added to the host element. Default value is false.

Example

this.igxInput.isInput = true;

Example

let isCLassAdded = this.igxInput.isInput;
isTextArea: boolean = false

Sets/gets whether the "class.igx-input-group__textarea" class is added to the host element. Default value is false.

Example

this.igxInput.isTextArea = true;

Example

let isCLassAdded = this.igxInput.isTextArea;

Accessors

Methods