File

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

Description

Wrapper component for gallery item's elements.

Extends

ECLBaseDirective

Implements

EclGalleryItem OnInit

Metadata

Index

Properties
Methods
Inputs
Outputs
HostBindings
HostListeners
Accessors

Inputs

description
Type : string
icon
Type : string
isShareable
Type : boolean
Default value : true

Can this item be shared, i.e. show/hide share button.

itemId
Type : string
mediaType
Type : "image" | "video" | "externalVideo"
Default value : 'image'
meta
Type : string
src
Type : string

The source link to the image/video, that will be shown in the original size (when open image/video in overlay or in orginal size).

srVideoAudioDescription
Type : string

Embeded audio description.

title
Type : string
ariaLabel
Type : string | null
Default value : null
class
Type : string
e2eAttr
Type : any
tabindex
Type : number

Outputs

itemClick
Type : EventEmitter

HostBindings

attr.role
Type : string
Default value : 'listitem'

The role attribute of the item is 'listitem', should not be changed.

class
Type : string

Binds specific classes for the item. Some depend on some of the properties of the component.

HostListeners

click
Arguments : '$event'
click(evt: MouseEvent)

Methods

getDownloadLink
getDownloadLink()
Returns : string
getUrlExternalVideo
getUrlExternalVideo()
Returns : SafeResourceUrl
onFocus
onFocus()
Returns : void
onItemClick
onItemClick(evt: MouseEvent)
Decorators :
@HostListener('click', ['$event'])
Parameters :
Name Type Optional
evt MouseEvent No
Returns : void
getCssClasses
getCssClasses(rootClass: string)
Parameters :
Name Type Optional
rootClass string No
Returns : string

Properties

galleryPicture
Type : EclGalleryPictureDirective
Decorators :
@ContentChild(EclGalleryPictureDirective)
mediaChild
Type : EclGalleryMediaDirective
Decorators :
@ContentChild(EclGalleryMediaDirective)
role
Type : string
Default value : 'listitem'
Decorators :
@HostBinding('attr.role')

The role attribute of the item is 'listitem', should not be changed.

Accessors

cssClasses
getcssClasses()

Binds specific classes for the item. Some depend on some of the properties of the component.

Returns : string
isHidden
setisHidden(value: boolean)

Set if the item should be shown in the gallery by default.

Parameters :
Name Type Optional
value boolean No
Returns : void
isNoOverlay
getisNoOverlay()
setisNoOverlay(value: boolean)
Parameters :
Name Type Optional
value boolean No
Returns : void
isImage
getisImage()
isVideo
getisVideo()
isExternalVideo
getisExternalVideo()
isOpenInFullScreenPossible
getisOpenInFullScreenPossible()
titleId
gettitleId()

Creates id for the title

Returns : string

results matching ""

    No results matching ""