Class IgxInputGroupComponent

Hierarchy

Implements

  • DoCheck
  • OnInit
  • IgxInputGroupBase

Constructors

constructor

Properties

defaultClass

defaultClass: boolean = true

Property that enables/disables the autogenerated class of the IgxInputGroupComponent. By default applied the class is applied.

@ViewChild("MyInputGroup")
public inputGroup: IgxInputGroupComponent;
ngAfterViewInit(){
this.inputGroup.defaultClass = false;

}

disabled

disabled: boolean = false

An @Input property that disables the IgxInputGroupComponent.

<igx-input-group [disabled]="'true'"></igx-input-group>

element

element: ElementRef

An ElementRef property of the IgxInputGroupComponent.

id

id: string = `igx-input-group-${NEXT_ID++}`

An @Input property that sets the value of id attribute. If not provided it will be automatically generated.

<igx-input-group [id]="'igx-input-group-55'"></igx-input-group>

onDensityChanged

onDensityChanged: EventEmitter<IDensityChangedEventArgs> = new EventEmitter<IDensityChangedEventArgs>()

Accessors

displayDensity

filled

  • get filled(): boolean
  • set filled(val: boolean): void

hasBorder

  • get hasBorder(): boolean
  • Returns whether the IgxInputGroupComponent has border.

    @ViewChild("MyInputGroup")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let inputBroder = this.inputGroup.hasBorder;
    }

    Returns boolean

hasHints

  • get hasHints(): boolean
  • Returns whether the IgxInputGroupComponent has hints.

    @ViewChild("MyInputGroup")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let inputHints = this.inputGroup.hasHints;
    }

    Returns boolean

isTypeBorder

  • get isTypeBorder(): boolean
  • Returns whether the IgxInputGroupComponent type is border.

    @ViewChild("MyInputGroup1")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let isTypeBorder = this.inputGroup.isTypeBorder;
    }

    Returns boolean

isTypeBox

  • get isTypeBox(): boolean
  • Returns whether the IgxInputGroupComponent type is box.

    @ViewChild("MyInputGroup1")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let isTypeBox = this.inputGroup.isTypeBox;
    }

    Returns boolean

isTypeFluent

  • get isTypeFluent(): boolean
  • Returns whether the IgxInputGroupComponent type is Fluent.

    @ViewChild("MyInputGroup1")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let isTypeFluent = this.inputGroup.isTypeFluent;
    }

    Returns boolean

isTypeFluentSearch

  • get isTypeFluentSearch(): boolean
  • Returns whether the IgxInputGroupComponent type is fluentSearch.

    @ViewChild("MyInputGroup1")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let isTypeFluentSearch = this.inputGroup.isTypeFluentSearch;
    }

    Returns boolean

isTypeLine

  • get isTypeLine(): boolean
  • Returns whether the IgxInputGroupComponent type is line.

    @ViewChild("MyInputGroup1")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let isTypeLine = this.inputGroup.isTypeLine;
    }

    Returns boolean

isTypeSearch

  • get isTypeSearch(): boolean
  • Returns whether the IgxInputGroupComponent type is search.

    @ViewChild("MyInputGroup1")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let isTypeSearch = this.inputGroup.isTypeSearch;
    }

    Returns boolean

supressInputAutofocus

  • get supressInputAutofocus(): boolean
  • set supressInputAutofocus(value: boolean): void
  • Returns whether the input element of the input group will be automatically focused on click.

    let supressInputAutofocus = this.inputGroup.supressInputAutofocus;

    Returns boolean

  • Sets whether the input element of the input group will be automatically focused on click.

    <igx-input-group [supressInputAutofocus]="true"></igx-input-group>

    Parameters

    • value: boolean

    Returns void

type

  • get type(): string
  • set type(value: string): void
  • Returns the type of the IgxInputGroupComponent. How the input is styled. Values are line - 0, box - 1, border - 2, fluent - 3 fluentSearch - 4 and search - 5. The default is line.

    @ViewChild("MyInputGroup")
    public inputGroup: IgxInputGroupComponent;
    ngAfterViewInit(){
       let inputType = this.inputGroup.type;
    }

    Returns string

  • An @Input property that sets how the input will be styled. The allowed values are line, box, border, fluent, search and fluentSearch. The default is line.

    <igx-input-group [type]="'search'">

    Parameters

    • value: string

    Returns void

Methods

ngDoCheck

  • ngDoCheck(): void