role
属性を取得または設定します。
this.button.role = 'navbutton';
let buttonRole = this.button.role;
ボタンが選択されるかどうかを取得または設定します。 IgxButtonGroup コンポーネントで使用されます。別に設定される場合に影響しません。
<button igxButton="flat" [selected]="button.selected"></button>
ボタンの背景色を設定します。
<button igxButton="raised" igxButtonBackground="red"></button>
ボタンのテキスト色を設定します。
<button igxButton="gradient" igxButtonColor="blue"></button>
ボタンを有効/無効にします。
<button igxButton= "fab" [disabled]="true"></button>
コンポーネントのテーマを返します。
デフォルト テーマは comfortable
です。
利用可能なオプションは comfortable
、cosy
、および compact
です。
let componentTheme = this.component.displayDensity;
コンポーネントのテーマを設定します。
aria-label
属性を設定します。
<button igxButton= "flat" igxLabel="Label"></button>
基本の DOM 要素を返します。
ボタンの種類を設定します。
<button igxButton= "icon"></button>
ボタンがクリックされたときに呼び出されます。