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
}
undefined| Default | undefined |
|---|---|
| Description | The file path to a thumbnail, presumably an image. |
string| Default | undefined |
|---|---|
| Description | Provides an accessible label for a thumbnail. |
boolean| Default | false |
|---|---|
| Description | Indicates whether the thumbnail represents a video. |