Icon provides a way to include material icons to markup

Igx Module
IgxIconModule
Igx Theme
igx-icon-theme
Igx Keywords
icon, picture
Igx Group
Display

Remarks

[object Object]

Example

<igx-icon family="filter-icons" active="true">home</igx-icon>

IgxIconComponent

new IgxIconComponent(): IgxIconComponent

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:118

Returns IgxIconComponent

An

active: boolean = true

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:116

Example

<igx-icon [active]="false">settings</igx-icon>

The aria-hidden attribute of the icon. By default is set to 'true'.

ariaHidden: boolean = true

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:83

el: ElementRef<any>

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:35

An

family: string

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:94

Example

<igx-icon family="material">settings</igx-icon>

Set the name of the icon.

name: string

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:105

Example

<igx-icon name="contains" family="filter-icons"></igx-icon>

An accessor that returns the value of the active property.

get getActive(): boolean

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:193

Example

@ViewChild("MyIcon")
public icon: IgxIconComponent;
ngAfterViewInit() {
   let iconActive = this.icon.getActive;
}

Returns boolean

An accessor that returns the value of the family property.

get getFamily(): string

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:177

Example

@ViewChild("MyIcon")
public icon: IgxIconComponent;
ngAfterViewInit() {
   let iconFamily = this.icon.getFamily;
}

Returns string

An accessor that returns inactive property.

get getInactive(): boolean

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:73

Example

@ViewChild("MyIcon")
public icon: IgxIconComponent;
ngAfterViewInit() {
   let iconActive = this.icon.getInactive;
}

Returns boolean

An accessor that returns the value of the iconName property.

get getName(): string

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:209

Example

@ViewChild("MyIcon")
public icon: IgxIconComponent;
ngAfterViewInit() {
   let name = this.icon.getName;
}

Returns string

An accessor that returns the underlying SVG image as SafeHtml.

get getSvg(): SafeHtml

Defined in projects/igniteui-angular/icon/src/icon/icon.component.ts:225

Example

@ViewChild("MyIcon")
public icon: IgxIconComponent;
ngAfterViewInit() {
   let svg: SafeHtml = this.icon.getSvg;
}

Returns SafeHtml