Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3074

when to put text and layout data in new control

$
0
0

Hi ,

 

I've created new control via extend and I want to know where should I put the text:... and layoutData

Here how its done in regular way

 

var oTitle = new sap.ui.core.Title({

                    text: "{i18n>title_test}",

                    layoutData: new sap.ui.layout.GridData({

                        span: "L12 M12 S12"

                    })

                });

I've composite control which I use the title like following and I need to applay both the layout and text

extend....

    metadata: {
   aggregations: {
   title: {
   type: "sap.ui.commons.Label",
   multiple: false
   },

Viewing all articles
Browse latest Browse all 3074

Trending Articles



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