カルーセルのアニメーション タイプを取得または設定します。
デフォルト値は slide です。
<igx-carousel animationType="none">
<igx-carousel>
カルーセルが一時停止された後に発生するイベントです。
イベント引数として IgxCarouselComponent への参照を提供します。
<igx-carousel (carouselPaused)="carouselPaused($event)"></igx-carousel>
カルーセルが slides の間の移動を再開した後に発生するイベントです。
イベント引数として IgxCarouselComponent への参照を提供します。
<igx-carousel (carouselPlaying)="carouselPlaying($event)"></igx-carousel>
カルーセル コンポーネントのクラスを返します。
let class = this.carousel.cssClass;
カルーセルにジェスチャをサポートするかどうかを制御します。
デフォルト値は true です。
<igx-carousel [gesturesSupport]="false"></igx-carousel>
カルーセルの id を設定します。設定されていない場合、最初のカルーセル コンポーネントの
id は "igx-carousel-0" になります。
<igx-carousel id="my-first-carousel"></igx-carousel>
カルーセルがインジケーターを表示するかどうかを制御します。
デフォルト値は true です。
<igx-carousel [indicators]="false"></igx-carousel>
カルーセル インジケーターの表示モードを取得または設定します。start または end
にすることができます。デフォルト値は end です。
<igx-carousel indicatorsOrientation="start">
<igx-carousel>
カルーセル インジケーターをレンダリングするときに使用するカスタム テンプレート。
// Set in typescript
const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;
myComponent.carousel.indicatorTemplate = myCustomTemplate;
<!-- Set in markup -->
<igx-carousel #carousel>
...
<ng-template igxCarouselIndicator let-slide>
<igx-icon *ngIf="slide.active">brightness_7</igx-icon>
<igx-icon *ngIf="!slide.active">brightness_5</igx-icon>
</ng-template>
</igx-carousel>
カルーセルが最後のスライドの後に最初のスライドに戻る (loop) かどうかを設定します。
デフォルト値は true です。
<igx-carousel [loop]="false"></igx-carousel>
表示できる最大インデックスを制御します。
デフォルト値は 10 です。
<igx-carousel [maximumIndicatorsCount]="5"></igx-carousel>
カルーセルに左/右のナビゲーション (navigation) ボタンをレンダリングするかどうかを制御します。
デフォルト値は true です。
<igx-carousel [navigation]="false"></igx-carousel>
カルーセル「次へ」ボタンをレンダリングするときに使用する必要があるカスタムテンプレート (存在する場合)。
// Set in typescript
const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;
myComponent.carousel.nextButtonTemplate = myCustomTemplate;
<!-- Set in markup -->
<igx-carousel #carousel>
...
<ng-template igxCarouselNextButton let-disabled>
<button type="button" igxButton="fab" igxRipple="white" [disabled]="disabled">
<igx-icon name="add"></igx-icon>
</button>
</ng-template>
</igx-carousel>
カルーセルがユーザー インタラクションでスライド トランジションを一時停止する (pause) かどうかを設定します。
デフォルト値は true です。
<igx-carousel [pause]="false"></igx-carousel>
カルーセル「前へ」ボタンをレンダリングするときに使用する必要があるカスタムテンプレート (存在する場合)。
// Set in typescript
const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;
myComponent.carousel.prevButtonTemplate = myCustomTemplate;
<!-- Set in markup -->
<igx-carousel #carousel>
...
<ng-template igxCarouselPrevButton let-disabled>
<button type="button" igxButton="fab" igxRipple="white" [disabled]="disabled">
<igx-icon name="remove"></igx-icon>
</button>
</ng-template>
</igx-carousel>
カルーセルの role 属性を返します。
let carouselRole = this.carousel.role;
スライドがカルーセルに追加された後に発生するイベントです。
イベント引数として IgxCarouselComponent および IgxSlideComponent への参照を提供します。
<igx-carousel (slideAdded)="slideAdded($event)"></igx-carousel>
スライド トランジションが実行された後に発生するイベントです。
イベント引数として IgxCarouselComponent および IgxSlideComponent への参照を提供します。
<igx-carousel (slideChanged)="slideChanged($event)"></igx-carousel>
スライドがカルーセルから削除された後に発生するイベントです。
イベント引数として IgxCarouselComponent および IgxSlideComponent への参照を提供します。
<igx-carousel (slideRemoved)="slideRemoved($event)"></igx-carousel>
カルーセルにある slides のコレクションです。
let slides: QueryList<IgxSlideComponent> = this.carousel.slides;
カルーセルを垂直に配置するかどうかを制御します。
デフォルト値は false です。
<igx-carousel [vertical]="true"></igx-carousel>
リソース文字列を返すアクセサーです。
list item の touch-action スタイルを取得します。
let touchAction = this.listItem.touchAction;
既定の index に対応するスライドまたは null を返します。
let slide1 = this.carousel.get(1);
指定した direction に移動する指定したスライドのトランジションを実行します。
const slide = this.carousel.get(2);
this.carousel.select(slide, CarouselAnimationDirection.NEXT);
指定した direction でインデックスによるスライドに切り替えます。
this.carousel.select(2, CarouselAnimationDirection.NEXT);
Ignite UI for Angular Carousel - ヘルプ
Ignite UI Carousel はスライド コレクションのブラウズやナビゲーションに使用されます。 スライドは画像またはカードなどのカスタム コンテンツを含みます。チュートリアルまたはページに分割されるインターフェイスなどに使用できます。 別の全画面要素として使用、またはその他のコンポーネントに含むことができます。
例: