Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.
BSD 2-Clause "Simplified" License
227
stars
102
forks
source link
"onDialogOpen" on widget's API #759
Open
Nandhan-augment opened 4 years ago
Summary
Getting this error when i tried to get event from onDialogOpen function.
ERROR TypeError: "this.widgetComponent.widget is undefined"
My sample code: import { UcWidgetComponent } from '../../../../../node_modules/ngx-uploadcare-widget/release/ucWidget/ucWidget.component';
@ViewChildren(UcWidgetComponent) private widgetComponent: QueryList;
uploadLimit() { (this.widgetComponent as any).widget.onDialogOpen( di => { console.log(di); }); }
versions I'm using: "uploadcare-widget": "^3.6.0", "@angular/core": "^6.1.10", "typescript": "~2.9.2"