GitHub

DaffThumbnailDirective

import { DaffThumbnailDirective } from '@daffodil/design/media-gallery'

DaffThumbnailDirective is a structural directive used to mark elements as thumbnails within the DaffMediaGalleryComponent.

<ng-template daffThumbnail></ng-template>
@Directive()
class DaffThumbnailDirective implements OnInit {
  @Input() thumbnailSrc: undefined = undefined
  @Input() label: string = undefined
  @Input() isVideo: boolean = false
}

Inputs

thumbnailSrc
undefined
Defaultundefined
Description

The file path to a thumbnail, presumably an image.

label
string
Defaultundefined
Description

Provides an accessible label for a thumbnail.

isVideo
boolean
Defaultfalse
Description

Indicates whether the thumbnail represents a video.