クラス IgxButtonDirective

Button ディレクティブは、ボタンとして使用を意図されているすべてのコンポーネントに Ignite UI ボタン機能を提供します。

Igx Module

IgxButtonModule

Igx Parent

データ入力と表示

Igx Theme

igx-button-theme

Igx Keywords

button, span, div, click

Remarks

Ignite UI Button ディレクティブは、いずれかのボタン、スパン、または div で使用され、これらを完全に機能するボタンに変更することが意図されています。

Example

<button type="button" igxButton="outlined">A Button</button>

階層

Hierarchy

  • DisplayDensityBase
    • IgxButtonDirective

実装

  • AfterContentInit

コンストラクタ

プロパティ

buttonClick: EventEmitter<any> = ...

ボタンがクリックされたときに呼び出されます。

buttonSelected: EventEmitter<IButtonEventArgs> = ...

ボタンが選択されたときに呼び出されます。

densityChanged: EventEmitter<IDensityChangedEventArgs> = ...
element: ElementRef<any>
role: string = 'button'

role 属性を設定または取得します。

Example

this.button.role = 'navbutton';
let buttonRole = this.button.role;

アクセサー

メソッド

  • 表示密度の値に基づいて --component-size CSS 変数を設定します。

    返却 "var(--ig-size, var(--ig-size-small))" | "var(--ig-size, var(--ig-size-medium))" | "var(--ig-size, var(--ig-size-large))"