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

The Ignite UI Icon makes it easy for developers to include material design icons directly in their markup. The icons support different icon families and can be marked as active or disabled using the active property. This will change the appearance of the icon.

Example

<igx-icon family="filter-icons" active="true">home</igx-icon>
new IgxIconComponent(): IgxIconComponent

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

Returns IgxIconComponent

An

active: boolean = true

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

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:99

An

family: string

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

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:121

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:209

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:193

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:89

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:225

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:241

Example

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

Returns SafeHtml