Skip to Content

How to extend a button control in Viz Frame?

Jun 14, 2017 at 10:26 AM


avatar image
Former Member


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("", { 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.


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

0 Answers