diff --git a/api/js/etemplate/et2_widget_vfs.ts b/api/js/etemplate/et2_widget_vfs.ts index 54d80cc9a9..896c2714f1 100644 --- a/api/js/etemplate/et2_widget_vfs.ts +++ b/api/js/etemplate/et2_widget_vfs.ts @@ -936,6 +936,12 @@ export class et2_vfsUpload extends et2_file "description": "Upload files to the specified VFS path", "type": "string", "default": '' + }, + "listonly": { + "name": "List Only", + "description": "Display given file objects only as list (removes span,input and progress from the dom)", + "type": "boolean", + "default": false } }; @@ -967,6 +973,12 @@ export class et2_vfsUpload extends et2_file this.set_multiple(true); } this.list = jQuery(document.createElement('table')).appendTo(this.node); + if (this.options.listonly) + { + this.input.remove(); + this.span.remove(); + this.progress.remove(); + } } /**