クラス IgxIconComponent

アイコンは、マークアップにマテリアル アイコンを含める方法を提供します。

Igx Module

IgxIconModule

Igx Theme

igx-icon-theme

Igx Keywords

icon, picture

Igx Group

表示

Remarks

Ignite UI Icon を使用すると、開発者はマテリアル デザイン アイコンをマークアップに直接簡単に含めることができます。 アイコンはさまざまなアイコン ファミリをサポートしており、active プロパティを使用してアクティブまたは無効としてマークできます。 これにより、アイコンの外観が変更されます。

Example

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

階層

Hierarchy

  • IgxIconComponent

実装

  • OnInit
  • OnDestroy

コンストラクタ

プロパティ

アクセサー

コンストラクタ

プロパティ

active: boolean = true

Input

active プロパティの無効化を許可する @Input プロパティ。デフォルトでクラスが適用されます。

Example

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

これにより aria-hidden 属性を無効にできます。デフォルトでクラスが適用されます。

Example

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

Input

family の値を設定する @Input プロパティ。デフォルトは、"material" です。

Example

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

Input

アイコンの name の変更を許可する @Input プロパティ。

Example

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

アクセサー

  • get template(): TemplateRef<HTMLElement>
  • 明示的、暗黙、またはなしの合字を参照する TemplateRef を返すアクセサー。

    Example

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

    返却 TemplateRef<HTMLElement>