jQWidgets Forums

jQuery UI Widgets Forums Angular jqxnotification within dataadapter

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 8 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxnotification within dataadapter #95276

    barnie111
    Participant

    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

    jqxnotification within dataadapter #95362

    Peter Stoev
    Keymaster

    Hi barnie111,

    The notification component does not have data binding i.e using it along with data adapter would not be much possible.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.