Skip to Content
avatar image
Former Member

How to extend a button control in Viz Frame?


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.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers