0

While trying to reuse the lightning experience in visualforce Page classic. A generic reusable button is built and been reused. However for visualforce we cannot use the same as overlaylibrary was embedded. As a workaround have tried e.force:navigateToComponent on button click to redirect. As per salesforce limitation this wont work too. Is there anyworkaround other than auraif/else as that will be a complex scenario.

({
    onCancel : function(cmp, event, helper) {
        //cmp.find("overlayLib").notifyClose();
        var evt = $A.get("e.force:navigateToComponent");
        evt.setParams({
        componentDef : "c:mycmp",
        componentAttributes: {
            ACB: "True",
            DEb : "abc",
            DEF : "gfj"
        }
    });
    evt.fire();
    },

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.