cancel
Showing results for 
Search instead for 
Did you mean: 

How to extend a button control in Viz Frame?

Former Member
0 Kudos

Hi,

I need to extend a button control in Viz Frame control. Please see the below code for the same.

I have made a separate js file name commonControl.js in which i have write below code.

sap.viz.ui5.controls.VizFrame.extend("bslsap.coil.insurance.customcontrols.hello", { renderer:"sap.viz.ui5.controls.VizFrameRenderer",

metadata : {
properties: {
"colorCode":{type : "string"},
"lineStatus":{type : "string"},
"whatever": {type : "any"} },
aggregations : { _buyButton : {type : "sap.m.Button", multiple : false, visibility: "hidden"},
}
}
});

Please see the above code is ok for the same. If not please provide me the code if possible.

And the way to use this extended button control in viz frame control.

Please suggest something. Thanks in Advance.

Somdutt

Accepted Solutions (0)

Answers (0)