File

packages/ecl/components/ecl-carousel/ecl-carousel-item.component.ts

Description

Represents a single item (slide) within the ECL Carousel. Each slide can optionally include an EclBannerComponent and supports click events.

Extends

ECLBaseDirective

Implements

EclCarouselItem

Metadata

Index

Properties
Methods
Inputs
Outputs
HostListeners
Accessors

Inputs

id
Type : string

The unique identifier of the slide.

isCurrent
Type : boolean
Default value : false

Indicates whether this slide is currently active/visible. Automatically coerced to a boolean value.

class
Type : string
e2eAttr
Type : any
tabindex
Type : number

Outputs

slideClick
Type : EventEmitter

Emits an event when the slide is clicked.

HostListeners

click
click()

Handles click events on the slide and emits a slideClick event.

Methods

onSlideClick
onSlideClick()
Decorators :
@HostListener('click')

Handles click events on the slide and emits a slideClick event.

Returns : void
getCssClasses
getCssClasses(rootClass: string)
Parameters :
Name Type Optional
rootClass string No
Returns : string

Properties

ariaLabel
Type : string

The aria-label for the slide, assigned dynamically by the carousel.

banner
Type : EclBannerComponent
Decorators :
@ContentChild(undefined)

Optionally captures a banner component projected into the slide.

el
Type : unknown
Default value : inject(ElementRef)
Public index
Type : number

Internal slide index, assigned dynamically by the carousel.

Accessors

cssClasses
getcssClasses()

Computes the slide's CSS class.

Returns : string

results matching ""

    No results matching ""