Class IgxIconComponent

Icon provides a way to include material icons to markup

IgxIconModule

igx-icon-theme

icon, picture

Display

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.

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

Implements

  • OnInit
  • OnChanges
  • OnDestroy

Constructors

Properties

active: boolean = true

An

property that allows you to disable the active property. By default it's applied.

<igx-icon [active]="false">settings</igx-icon>
ariaHidden: boolean = true

This allows you to disable the aria-hidden attribute. By default it's applied.

@ViewChild("MyIcon") public icon: IgxIconComponent;
constructor(private cdRef:ChangeDetectorRef) {}
ngAfterViewInit() {
this.icon.ariaHidden = false;
this.cdRef.detectChanges();
}
el: ElementRef<any>
family: string

An

property that sets the value of the family. By default it's "material".

<igx-icon family="material">settings</igx-icon>
name: string

Set the name of the icon.

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

Accessors