Class IgxSlideComponent

A slide component that usually holds an image and/or a caption text. IgxSlideComponent is usually a child component of an IgxCarouselComponent.

<igx-slide [input bindings] >
<ng-content></ng-content>
</igx-slide>

Implements

  • AfterContentChecked
  • OnDestroy
  • IgxSlideComponentBase

Constructors

Properties

cssClass: string = 'igx-slide'

Returns the class of the slide component.

let class =  this.slide.cssClass;

IgxSlideComponent

direction: Direction

Gets/sets the target direction for the slide.

<igx-carousel>
<igx-slide direction="NEXT"></igx-slide>
<igx-carousel>

IgxSlideComponent

index: number

Gets/sets the index of the slide inside the carousel.

<igx-carousel>
<igx-slide index="1"></igx-slide>
<igx-carousel>

IgxSlideComponent

previous: boolean = false
tab: string = 'tabpanel'

Returns the role of the slide component. By default is set to tabpanel

IgxSlideComponent

total: number

Accessors

Methods