mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-15 10:52:30 +02:00
Et2ImageExpose, used in Resources app
This commit is contained in:
@ -8,6 +8,7 @@ import {et2_IDetachedDOM} from "../et2_core_interfaces";
|
||||
* Set src property for the thumbnail / small image
|
||||
* Set href property to the URL of the full / large image
|
||||
*/
|
||||
//@ts-ignore Something not right with types & inheritance according to TypeScript
|
||||
export class Et2ImageExpose extends ExposeMixin(Et2Image) implements et2_IDetachedDOM
|
||||
{
|
||||
constructor()
|
||||
@ -41,6 +42,7 @@ export class Et2ImageExpose extends ExposeMixin(Et2Image) implements et2_IDetach
|
||||
getMedia(_value) : MediaValue[]
|
||||
{
|
||||
let media = super.getMedia(_value);
|
||||
media[0].title = this.label;
|
||||
media[0].thumbnail = this.src;
|
||||
|
||||
return media;
|
||||
|
Reference in New Issue
Block a user