packages/ecl/components/ecl-gallery/ecl-gallery-item.component.ts
Wrapper component for gallery item's elements.
| selector | ecl-gallery-item |
| imports |
EUI_ECL_ICON
|
| templateUrl | ./ecl-gallery-item.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
HostListeners |
Accessors |
| 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
|
| itemClick |
Type : EventEmitter
|
| 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. |
| click |
Arguments : '$event'
|
click(evt: MouseEvent)
|
| getDownloadLink |
getDownloadLink()
|
|
Returns :
string
|
| getUrlExternalVideo |
getUrlExternalVideo()
|
|
Returns :
SafeResourceUrl
|
| onFocus |
onFocus()
|
|
Returns :
void
|
| onItemClick | ||||||
onItemClick(evt: MouseEvent)
|
||||||
Decorators :
@HostListener('click', ['$event'])
|
||||||
|
Parameters :
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| 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. |
| 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 :
Returns :
void
|
| isNoOverlay | ||||||
getisNoOverlay()
|
||||||
setisNoOverlay(value: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| isImage |
getisImage()
|
| isVideo |
getisVideo()
|
| isExternalVideo |
getisExternalVideo()
|
| isOpenInFullScreenPossible |
getisOpenInFullScreenPossible()
|
| titleId |
gettitleId()
|
|
Creates id for the title
Returns :
string
|