All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpm.designer.public.js.Plugins.notificationsplugin.js Maven / Gradle / Ivy

There is a newer version: 7.73.0.Final
Show newest version
if (!ORYX.Plugins)
    ORYX.Plugins = {};

if (!ORYX.Config)
    ORYX.Config = {};

ORYX.Plugins.NotificationsPlugin = Clazz.extend({
    construct: function(facade){
        this.facade = facade;
        this.facade.registerOnEvent(ORYX.CONFIG.EVENT_NOTIFICATION_SHOW, this.showNotification.bind(this));
    },
    showNotification: function(options) {
        notifications.options = {
            positionClass: options.position || 'notification-top-right',
            onclick: options.onclick || null,
            timeOut: options.timeOut || 1000,
            extendedTimeOut: options.extendedTimeOut || 4000
        };
        var notification = notifications[options.ntype](options.msg, options.title);
    }
});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy