Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8627

Re: How to create this custom UI control?

$
0
0

Hi Chirs,

 

Not exactly extension for Carousel but this is a quick example of control extension which may help you to understand control extension -

 

sap.ui.commons.TextField.extend("ExtTextField", {  metadata : {  properties : {  "vType" : "string"  },  },  renderer : "sap.ui.commons.TextFieldRenderer",
});

implement the method as follows for additional functionality you are looking for -

 

ExtTextField.prototype.change = function(evt, oControl) {  console.log(oControl.getVType());
//Do what ever addtional thing you wanna do
};

For a bit advance control extendion would like to suggest you to have a look at Working with Control Extensions in UI5 - Creating F4 control

 

Thanks & Regards

Jeetendra


Viewing all articles
Browse latest Browse all 8627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>