Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"onDialogOpen" on widget's API #759

Open
Nandhan-augment opened this issue Jun 10, 2020 · 0 comments
Open

"onDialogOpen" on widget's API #759

Nandhan-augment opened this issue Jun 10, 2020 · 0 comments

Comments

@Nandhan-augment
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant