diff --git a/ng2-components/ng2-alfresco-upload/README.md b/ng2-components/ng2-alfresco-upload/README.md index 123b09d76c..9a1b665df3 100644 --- a/ng2-components/ng2-alfresco-upload/README.md +++ b/ng2-components/ng2-alfresco-upload/README.md @@ -86,8 +86,7 @@ npm install --save material-design-icons material-design-lite ```html - **showUdoNotificationBar**: {boolean} (optional) default true. Hide/show notification bar.
**uploadFolders**: {boolean} (optional) default false. Allow/disallow upload folders (only for chrome).
**multipleFiles**: {boolean} (optional) default false. Allow/disallow multiple files.
@@ -151,7 +148,7 @@ This component, provide a drag and drop are to upload files to alfresco. #### Basic usage ```html - + ``` Example of an App that declares upload drag and drop component : @@ -166,7 +163,7 @@ import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload/d @Component({ selector: 'my-app', - template: ` + template: `
DRAG HERE
@@ -194,9 +191,16 @@ bootstrap(MyDemoApp, [ #### Events **onSuccess**: The event is emitted when the file is uploaded
-#### Options +### Files Dialog +This component provides a dialog that shows all the files uploaded +with upload button or drag & drop area components. This component should + be used in combination with upload button or drag & drop area. -**showDialogUpload**: {boolean} optional) default true. Hide/show upload dialog.
+#### Basic usage + +```html + +``` ## Build from sources Alternatively you can build component from sources with the following commands: diff --git a/ng2-components/ng2-alfresco-upload/demo/src/main.ts b/ng2-components/ng2-alfresco-upload/demo/src/main.ts index d6b5847a46..5247807318 100644 --- a/ng2-components/ng2-alfresco-upload/demo/src/main.ts +++ b/ng2-components/ng2-alfresco-upload/demo/src/main.ts @@ -26,8 +26,7 @@ import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload/d selector: 'my-app', template: `


- @@ -35,8 +34,7 @@ import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload/d

- @@ -44,8 +42,7 @@ import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload/d

- @@ -53,11 +50,12 @@ import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload/d

- +
DRAG HERE
-
`, +
+ `, directives: [ALFRESCO_ULPOAD_COMPONENTS] }) export class MyDemoApp { diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts index 951a4d7ceb..6592be95b6 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts @@ -18,7 +18,6 @@ import { Component, ViewChild, ElementRef, Input, Output, EventEmitter } from 'angular2/core'; import { UploadService } from '../services/upload.service'; -import { FileModel } from '../models/file.model'; import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core'; import 'rxjs/Rx'; @@ -26,8 +25,7 @@ declare let componentHandler: any; declare let __moduleName: string; /** - *
* * This component, provide a drag and drop are to upload files to alfresco. * - * @InputParam {boolean} [true] showDialogUpload - hide/show upload dialog . - * * @Output - onSuccess - The event is emitted when the file is uploaded * * @returns {UploadDragAreaComponent} .