Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

when to put text and layout data in new control

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


metadata: {
aggregations: {
title: {
type: "sap.ui.core.Title",
multiple: false
Former Member
Not what you were looking for? View more on this topic or Ask a question