cancel
Showing results for 
Search instead for 
Did you mean: 

add a title and label to the control

former_member643798
Participant
0 Kudos

HI,

Ive this example code and I need to add to the control a title and label ,But this should be within the control

I think by adding aggregation to it and not by add it to the page/grid etc .

when you call to the constructor of this control you get the title and AC label without the need to add them separate.

http://jsbin.com/cejedoyije/edit?js,output    

Thanks,

Joerg

Accepted Solutions (1)

Accepted Solutions (1)

karthikarjun
Active Contributor
0 Kudos

I Agree with Indrajith.

Few changes are added here ( eg Title ).   JS Bin - Collaborative JavaScript Debugging

Regards,

KA

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Joerg,

You can add a property to your extended control.

Something like this

JS Bin - Collaborative JavaScript Debugging

Is this what you are looking at? If not please let us know.

SergioG_TX
Active Contributor
0 Kudos

try this: add a placeholder property:

var oAuto1 = new myControl("TextField-1", { 

maxPopupItems: 20, 

ariaDescribedBy: "MyDesc", 

ariaLabelledBy: "MyLbl", 

placeholder: "title", // add this line 

items: {     path: '/aData',     template: new sap.ui.core.ListItem({       text: '{name}',       additionalText : '{userid}',       key : '{userid}'           })   } });