Skip to Content
0

How to extend a button control in Viz Frame?

Jun 14, 2017 at 10:26 AM

21

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers