Skip to content
Snippets Groups Projects
Commit f608ea1f authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[REF]: Add videoUrl attribute to ExtFile and ExtFileInstance

parent bfe27cad
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,10 @@ export declare type ExtFile = { ...@@ -77,6 +77,10 @@ export declare type ExtFile = {
file. If defined, the download icon will be shown. file. If defined, the download icon will be shown.
*/ */
downloadUrl?: string; downloadUrl?: string;
/**
* Link, URI, FIle object or string representation of a video
*/
videoUrl?: string;
} }
/** /**
...@@ -153,6 +157,11 @@ export class ExtFileInstance { ...@@ -153,6 +157,11 @@ export class ExtFileInstance {
* In case onDownload prop is given * In case onDownload prop is given
*/ */
public downloadUrl?: string; public downloadUrl?: string;
/**
* Link, URI, FIle object or string representation of a video
*/
public videoUrl?: string;
constructor(extFile: ExtFile) { constructor(extFile: ExtFile) {
const { const {
id, id,
...@@ -170,7 +179,7 @@ export class ExtFileInstance { ...@@ -170,7 +179,7 @@ export class ExtFileInstance {
extraData, extraData,
extraUploadData, extraUploadData,
serverResponse, serverResponse,
downloadUrl downloadUrl, videoUrl
} = extFile; } = extFile;
this.id = id; this.id = id;
...@@ -192,6 +201,7 @@ export class ExtFileInstance { ...@@ -192,6 +201,7 @@ export class ExtFileInstance {
this.serverResponse = serverResponse; this.serverResponse = serverResponse;
this.downloadUrl = downloadUrl; this.downloadUrl = downloadUrl;
this.videoUrl = videoUrl;
} }
/** /**
* method under construction * method under construction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment