EGL Development User Group

How a work with a third party developed EGL code.

  • 1.  How a work with a third party developed EGL code.

    Posted Fri February 26, 2021 08:57 PM
    Dear Expert,
    I have PushButtonView in my EGL application, it was customized by third party, it is headache, does not support back ground Color, foreground Color, I like to do some change to support for/back ground color. But it is hard to start. 
    the following is the definition file of PushButtonView :

    egl.defineWidget(
    "com.sync.gt2.egl.rui.vast.widgets", "PushButtonView",
    "com.sync.gt2.egl.rui.vast.widgets", "LabelView",
    "div",
    {
    "constructor" : function() {
    egl.com.sync.gt2.egl.rui.vast.widgets.PushButtonView.prototype.constructor.call(this, arguments);
    }
    }
    );
    require([
    "dojo/_base/lang",
    "sync-gt2-vast-support.js",
    "com/sync/gt2/vast/dojo/widgets/PushButtonView"
    ], function(lang, w, PushButtonView) {
    if (!egl.PushButtonViewExtended) {
    console.log("PushButtonView extended");
    var behavior = new PushButtonView({});
    lang.extend(egl.com.sync.gt2.egl.rui.vast.widgets.PushButtonView, behavior);
    egl.PushButtonViewExtended = true;
    }
    });

    Could you please teach me how to start with a good approach? 
    Thanks,

    Eric

    ------------------------------
    Eric Zuo
    ------------------------------