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 = {
file. If defined, the download icon will be shown.
*/
downloadUrl?: string;
/**
* Link, URI, FIle object or string representation of a video
*/
videoUrl?: string;
}
/**
......@@ -153,6 +157,11 @@ export class ExtFileInstance {
* In case onDownload prop is given
*/
public downloadUrl?: string;
/**
* Link, URI, FIle object or string representation of a video
*/
public videoUrl?: string;
constructor(extFile: ExtFile) {
const {
id,
......@@ -170,7 +179,7 @@ export class ExtFileInstance {
extraData,
extraUploadData,
serverResponse,
downloadUrl
downloadUrl, videoUrl
} = extFile;
this.id = id;
......@@ -192,6 +201,7 @@ export class ExtFileInstance {
this.serverResponse = serverResponse;
this.downloadUrl = downloadUrl;
this.videoUrl = videoUrl;
}
/**
* 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