EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only

How a work with a third party developed EGL code.

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

    Posted 02/26/21 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
    ------------------------------