Class IgxCarouselComponent

Ignite UI for Angular Carousel - ヘルプ

Ignite UI Carousel はスライド コレクションのブラウズやナビゲーションに使用されます。 スライドは画像またはカードなどのカスタム コンテンツを含みます。チュートリアルまたはページに分割されるインターフェイスなどに使用できます。 別の全画面要素として使用、またはその他のコンポーネントに含むことができます。

例:

<igx-carousel>
<igx-slide>
<h3>First Slide Header</h3>
<p>First slide Content</p>
<igx-slide>
<igx-slide>
<h3>Second Slide Header</h3>
<p>Second Slide Content</p>
</igx-carousel>

階層

Hierarchy

  • IgxCarouselComponentBase
    • IgxCarouselComponent

実装

  • OnDestroy
  • AfterContentInit
  • AfterViewChecked

コンストラクター

アクセサー

animationType: HorizontalAnimationType = HorizontalAnimationType.slide

カルーセルのアニメーション タイプを取得または設定します。 デフォルト値は slide です。

<igx-carousel animationType='none'>
<igx-carousel>

次のメンバー

IgxSlideComponent

carouselPaused: EventEmitter<IgxCarouselComponent> = ...

カルーセルが一時停止された後に発生するイベントです。 イベント引数として IgxCarouselComponent への参照を提供します。

<igx-carousel (carouselPaused)="carouselPaused($event)"></igx-carousel>

次のメンバー

IgxCarouselComponent

carouselPlaying: EventEmitter<IgxCarouselComponent> = ...

カルーセルが slides の間の移動を再開した後に発生するイベントです。 イベント引数として IgxCarouselComponent への参照を提供します。

<igx-carousel (carouselPlaying)="carouselPlaying($event)"></igx-carousel>

次のメンバー

IgxCarouselComponent

cssClass: string = 'igx-carousel'

カルーセル コンポーネントのクラスを返します。

let class =  this.carousel.cssClass;

次のメンバー

IgxCarouselComponent

gesturesSupport: boolean = true

カルーセルにジェスチャをサポートするかどうかを制御します。 デフォルト値は true です。

<igx-carousel [gesturesSupport]="false"></igx-carousel>

次のメンバー

IgxCarouselComponent

id: string = ...

カルーセルの id を設定します。設定されていない場合、最初のカルーセル コンポーネントの id"igx-carousel-0" になります。

<igx-carousel id="my-first-carousel"></igx-carousel>

次のメンバー

IgxCarouselComponent

indicatorTemplate: TemplateRef<any> = null

カルーセル インジケーターを描画するときに使用するカスタム テンプレートです。

// 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>
indicatorsOrientation: CarouselIndicatorsOrientation = CarouselIndicatorsOrientation.bottom

カルーセル インジケーターの表示モードを取得または設定します。top または bottom にすることができます。デフォルト値は bottom です。

<igx-carousel indicatorsOrientation='top'>
<igx-carousel>

次のメンバー

IgxSlideComponent

keyboardSupport: boolean = true

カルーセルにキーボード ナビゲーショをサポートするかどうかを制御します。 デフォルト値は true です。

<igx-carousel [keyboardSupport]="false"></igx-carousel>

次のメンバー

IgxCarouselComponent

loop: boolean = true

カルーセルが最後のスライドの後に最初のスライドに戻る (loop) かどうかを設定します。 デフォルト値は true です。

<igx-carousel [loop]="false"></igx-carousel>

次のメンバー

IgxCarouselComponent

maximumIndicatorsCount: number = 5

表示できる最大インデックスを制御します。 デフォルト値は 5 です。

<igx-carousel [maximumIndicatorsCount]="10"></igx-carousel>

次のメンバー

IgxCarouselComponent

navigation: boolean = true

カルーセルに左/右のナビゲーション (navigation) ボタンを描画するかどうかを制御します。 デフォルト値は true です。

<igx-carousel [navigation]="false"></igx-carousel>

次のメンバー

IgxCarouselComponent

nextButtonTemplate: TemplateRef<any> = null

カルーセル「次へ」ボタンを描画するときに使用する必要があるカスタムテンプレート (存在する場合)。

// 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>add</igx-icon>
</button>
</ng-template>
</igx-carousel>
pause: boolean = true

カルーセルがユーザー インタラクションでスライド トランジションを一時停止する (pause) かどうかを設定します。 デフォルト値は true です。

 <igx-carousel [pause]="false"></igx-carousel>

次のメンバー

IgxCarouselComponent

prevButtonTemplate: TemplateRef<any> = null

カルーセル「前へ」ボタンを描画するときに使用する必要があるカスタムテンプレート (存在する場合)。

// Set in typescript
const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;
myComponent.carousel.nextButtonTemplate = myCustomTemplate;
<!-- Set in markup -->
<igx-carousel #carousel>
...
<ng-template igxCarouselPrevButton let-disabled>
<button type="button" igxButton="fab" igxRipple="white" [disabled]="disabled">
<igx-icon>remove</igx-icon>
</button>
</ng-template>
</igx-carousel>
role: string = 'region'

カルーセルの role 属性を返します。

let carouselRole =  this.carousel.role;

次のメンバー

IgxCarouselComponent

slideAdded: EventEmitter<ISlideEventArgs> = ...

スライドがカルーセルに追加された後に発生するイベントです。 イベント引数として IgxCarouselComponent および IgxSlideComponent への参照を提供します。

<igx-carousel (slideAdded)="slideAdded($event)"></igx-carousel>

次のメンバー

IgxCarouselComponent

slideChanged: EventEmitter<ISlideEventArgs> = ...

スライド トランジションが実行された後に発生するイベントです。 イベント引数として IgxCarouselComponent および IgxSlideComponent への参照を提供します。

<igx-carousel (slideChanged)="slideChanged($event)"></igx-carousel>

次のメンバー

IgxCarouselComponent

slideRemoved: EventEmitter<ISlideEventArgs> = ...

スライドがカルーセルから削除された後に発生するイベントです。 イベント引数として IgxCarouselComponent および IgxSlideComponent への参照を提供します。

<igx-carousel (slideRemoved)="slideRemoved($event)"></igx-carousel>

次のメンバー

IgxCarouselComponent

slides: QueryList<IgxSlideComponent>

カルーセルにある slides のコレクションです。

let slides: QueryList<IgxSlideComponent> = this.carousel.slides;

次のメンバー

IgxCarouselComponent

theme: string

カルーセル コンポーネントのテーマを設定します。

アクセサー

  • get interval(): number
  • スライドが変わる前の間隔 (interval) をミリ秒で返します。

    let timeInterval = this.carousel.interval;
    

    次のメンバー

    IgxCarouselComponent

    返却 number

  • set interval(value): void
  • スライドが変わる前の間隔 (interval) をミリ秒で設定します。設定されない場合、カルーセルは slides を自動的に変更しません。

    <igx-carousel [interval]="1000"></igx-carousel>
    

    次のメンバー

    IgxCarouselComponent

    パラメーター

    • value: number

    返却 void

メソッド