タブのコンテンツのトランジション アニメーションを有効/無効にします。
````html <igx-tabs [disableAnimation]="true">
すべての IgxTabsGroupComponent
の監視可能コレクションを提供します。
const groupItems = this.myTabComponent.groups;
Tabs の id
を設定または取得します。
タブ項目が選択解除された時に発生されます。
<igx-tabs (tabItemDeselected)="itemDeselected($event)">
<igx-tabs-group label="Tab 1">This is Tab 1 content.</igx-tabs-group>
<igx-tabs-group label="Tab 2">This is Tab 2 content.</igx-tabs-group>
</igx-tabs>
itemDeselected(e){
const tabGroup = e.group;
const tabItem = e.tab;
}
タブ項目が選択された時に発生されます。
<igx-tabs (tabItemSelected)="itemSelected($event)">
<igx-tabs-group label="Tab 1">This is Tab 1 content.</igx-tabs-group>
<igx-tabs-group label="Tab 2">This is Tab 2 content.</igx-tabs-group>
</igx-tabs>
itemSelected(e){
const tabGroup = e.group;
const tabItem = e.tab;
}
タブ ヘッダーのサイズ設定モードを定義します。contentfit
または fixed
に設定できます。
デフォルトのヘッダーのサイズ設定モードは contentfit
です。
<igx-tabs type="fixed">
<igx-tabs-group label="HOME">Home</igx-tabs-group>
</igx-tabs>
すべての IgxTabItemComponent
の監視可能コレクションを提供します。
const tabItems = this.myTabComponent.viewTabs;
selectedIndex
の値を設定する @Input プロパティ。
デフォルト値は 0 です。
<igx-tabs selectedIndex="1">
双方向データ バインディング。
<igx-tabs [(selectedIndex)]="model.selectedIndex">
selectedIndex
の値を設定する @Input プロパティ。
デフォルト値は 0 です。
<igx-tabs selectedIndex="1">
双方向データ バインディング。
<igx-tabs [(selectedIndex)]="model.selectedIndex">
選択された IgxTabItemComponent
を取得します。
const selectedItem = this.myTabComponent.selectedTabItem;
すべての IgxTabItemComponent
の監視可能コレクションを提供します。
最初にコンテンツの子として取得します。使用できない場合は、ビューの子として取得します。
const tabItems = this.myTabComponent.tabs;
ページで定義されているすべての
IgxTabItemComponent
の監視可能なコレクションを提供します。const tabItems = this.myTabComponent.contentTabs;