79597: Add alt text to ds-thumbnail

This commit is contained in:
Yura Bondarenko
2021-05-25 09:28:02 +02:00
parent f85a5e65ad
commit 55affdebce
4 changed files with 38 additions and 2 deletions

View File

@@ -18,7 +18,6 @@ export const THUMBNAIL_PLACEHOLDER = 'data:image/svg+xml;charset=UTF-8,%3Csvg%20
templateUrl: './thumbnail.component.html'
})
export class ThumbnailComponent implements OnInit {
/**
* The thumbnail Bitstream
*/
@@ -34,6 +33,11 @@ export class ThumbnailComponent implements OnInit {
*/
src: string;
/**
* i18n key of thumbnail alt text
*/
@Input() alt? = 'thumbnail.default.alt';
/**
* Initialize the thumbnail.
* Use a default image if no actual image is available.