Is it possible jqxnotification widget or other component use within dataadapter callbacks?
(my.component.html)
<jqxNotification #msgNotification
[width]=”250″ [position]=”‘top-right'” [opacity]=”0.9″ [autoOpen]=”false”
[autoClose]=”true” [animationOpenDelay]=”800″ [autoCloseDelay]=”3000″ [template]=”‘info'”>
<div>
Error notification
</div>
</jqxNotification>
(my.component.ts)
import { jqxNotificationComponent } from ‘jqwidgets-framework/jqwidgets-ts/angular_jqxnotification’
export class FlowComponent {
…
…
@ViewChild(‘msgNotification’) msgNotification: jqxNotificationComponent;
dataAdapter: any = new jqx.dataAdapter(this.source, {
downloadComplete(record, textStatus, jqXHR) {}
},
loadError(error, status, xhr) {
this.openNotification(); —> Cannot read property ‘open’ of undefined
}
});
openNotification(): void {
this.msgNotification.open();
}
}
Best barnie111